aspose file tools*
The moose likes Servlets and the fly likes config.getInitParameter   does'nt work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "config.getInitParameter   does Watch "config.getInitParameter   does New topic
Author

config.getInitParameter does'nt work

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi.
I am unable to access the inititalisation parameters with config.getInitParameter() method. But I could do the same thing with application.getInitParameter(). why ?
what is the diff between these two methods? Can anybody help.
Thanks
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
Please note that The Java Ranch has a naming policy, described here and "meena m" is not a valid name. Please choose one which meets the requirements.
Thanks.

Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
This is usually because your servlet redefines init, but does not call super.init as its first action. Check your init.
meena murugu
Greenhorn

Joined: Jan 03, 2001
Posts: 2
I am calling these methods from jsp page as follows:
<%= config.getInitParameter("var1") %>
<%= application.getInitParameter("var1") %>
and only the 2nd one works. I initialised the parameter thru' the application server JRUN.
Thanks
meena

 
 
subject: config.getInitParameter does'nt work