Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

tomcat 4.0 and initialization parameters

843841May 1 2003 — edited May 2 2003
I 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 30 2003
Added on May 1 2003
3 comments
134 views