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!

getServletConfig().getInitParameter() returns null, pls help!

843838Nov 17 2005 — edited Nov 17 2005
Hello,

I have a jsp page to call servlet value from web.xml file. My code is

String strParam1 = getServletConfig().getInitParameter("param1");

The jsp pge worked before, but it stop working recently. It always returns "null". I checked web.xml file. It looks well configured.

I also tried to call getServletConfig().getInitParameterNames(), but it returned nothing.

Can somebody tell me what cause this problem and what I should do? Our admin rebooted the server, but it doesn't help.


Thanks for you help in advance!!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 15 2005
Added on Nov 17 2005
5 comments
149 views