tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Duffy <duff...@yahoo.com>
Subject InitParameters Question
Date Wed, 14 Jan 2004 22:12:26 GMT

Init parameters for a servlet are specified in
web.xml, using the <init-param> child of the <servlet>
tag.

These can be accessed using the
javax.servlet.GenericServlet.getInitParameter().  So
far, so good.

There's also a getInitParameter() method in the
javax.servlet.ServletContext class.  I thought it,
too, gave access to the <init-param> values.

But in my application, ServletContext doesn't provide
access to the init param names.  My servlet does call
" super.init(config);" in the first line of its init()
method.

It appears that the init params of the servlet and its
context are different.  Can someone clear up this
misunderstanding for me?  Thanks - MOD


__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message