RE: Init parameter in context.xml

2005-07-26 Thread Arash Ramin

You're right, thanks.  I was missing the capital 'P' in the 
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
> 
>  
> 
> 
> -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:
> > 
> >   
> > 
> >   
> > 
> > According to the Tomcat docs, this is equivalent to using the 
> > following in
> > web.xml:
> > 
> >   
> > paramName
> > dummyValue
> >   
> > 
> > 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]



Re: Init parameter in context.xml

2005-07-26 Thread Tim Funk

Only a guess try
   

   

-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:

  

  

According to the Tomcat docs, this is equivalent to using the following in
web.xml:

  
paramName
dummyValue
  

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]



Init parameter in context.xml

2005-07-25 Thread Arash Ramin
In lieu of using web.xml, I'm trying to add an init parameter in our
application's context.xml file:

  

  

According to the Tomcat docs, this is equivalent to using the following in
web.xml:

  
paramName
dummyValue
  

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


Any clues appreciated.  Running on Tomcat 5.0.28.

- Arash



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