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]