tomcat 4.0 and initialization parameters
843841May 1 2003 — edited May 2 2003I am using Tomcat 4.0 and I am unable to retrieve init-parameters through the ServletConfig object.
I've placed these parameters in
.../web-inf/web.xml as follows
<web-app>
<servlet>
<servlet-name>Hello</servlet-name>
<servlet-class>InitServlet</servlet-class>
<init-param>
<param-name>message</param-name>
<param-value>Don</param-value>
</init-param>
</servlet>
</web-app>
config.getInitParameter("message") is giving me null
where config is a ServletConfig object obtained thru' init method
Can anyone please suggest me the solution?
Thanx