Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: InitParameters Question

Liem Do

2004-01-14

Replies:

> It appears that the init params of the servlet and its
> context are different. Can someone clear up this
> misunderstanding for me?
Yes you are right.

>
> There's also a getInitParameter() method in the
> javax.servlet.ServletContext class. I thought it,
> too, gave access to the <init-param> values.
>
The getInitParameter() from the javax.servlet.ServletContext comes from
<context-param> tags specified in web.xml for the whole application and not
within <servlet> tags.

Hope that clears it up a little.
LD


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.