You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Craig R. McClanahan" <Cr...@eng.sun.com> on 2000/04/10 04:05:36 UTC

Re: Context.getAttribute() ?


mark@mjwilcox.com wrote:

> HI,
>
> First I'll apologize for any double posts. My mailer was going
> phooyer earlier.
>
> However, if you wanted to get the value of a <context-param> from
> a web.xml file to initialize an Interceptor, should you use
> Context.getAttribute("parameter_name") or something else?

Context.getInitParameter(name)

The calls are analogous to those for initialization parameters in
servlets.

>
> thanks,
>
> Mark
>

Craig McClanahan



Re: Context.getAttribute() ?

Posted by ma...@mjwilcox.com.
Hi,

On 9 Apr 00, at 19:05, Craig R. McClanahan wrote:

> 
> 
> mark@mjwilcox.com wrote:
> 
> 
> > However, if you wanted to get the value of a <context-param> from
> > a web.xml file to initialize an Interceptor, should you use
> > Context.getAttribute("parameter_name") or something else?
> 
> Context.getInitParameter(name)
> 
> The calls are analogous to those for initialization parameters in
> servlets.
> 
This worked. 

Thanks for everyone's help. 

Now on to the authentication step. ;)

Mark
> >
> > thanks,
> >
> > Mark
> >
> 
> Craig McClanahan
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
> 
> 
>