You're right, thanks.  I was missing the capital 'P' in the <Parameter>
property.

When defining parameters under ResourceParams, it's all lowercase though.

- Arash

> -----Original Message-----
> From: Tim Funk [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, July 26, 2005 03:44
> To: Tomcat Users List
> Subject: Re: Init parameter in context.xml
> 
> Only a guess.... try
>     <Context path="/appName" ...>
>      <Parameter name="paramName" value="dummyValue"/>
>     </Context>
> 
> -Tim
> 
> Arash Ramin wrote:
> 
> > In lieu of using web.xml, I'm trying to add an init 
> parameter in our 
> > application's context.xml file:
> > 
> >   <context path="/appName" ...>
> >     <parameter name="paramName" value="dummyValue"/>
> >   </context>
> > 
> > According to the Tomcat docs, this is equivalent to using the 
> > following in
> > web.xml:
> > 
> >   <context-param>
> >     <param-name>paramName</param-name>
> >     <param-value>dummyValue</param-value>
> >   </context-param>
> > 
> > In my JSP page, I try the following:
> > 
> > <%= getServletContext().getInitParameter("helpAppName") %>
> > 
> > but I get simply get 'null'.  If I move the parameter to web.xml, 
> > everything works fine.
> > 
> > Our context.xml file is generated through an Ant script for 
> different 
> > environments, hence my need to put the parameter there instead of 
> > web.xml
> >  
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to