Why does config.getInitParameter(String)
always return null
in the following code example?
public void init(ServletConfig config) t
It's never a good idea to override the init(config)
method. Instead use the provided init()
convenience method and do a getServletConfig()
to get the configuration parameters:
http://docs.oracle.com/javaee/1.2.1/api/javax/servlet/GenericServlet.html#init() http://docs.oracle.com/javaee/1.2.1/api/javax/servlet/GenericServlet.html#getServletConfig()