tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Millson <>
Subject Tomcat 3.3 context parameter in server.xml
Date Thu, 29 Apr 2004 19:21:20 GMT
Is it possible to define a context parameter in Tomcat 3.3 as follows:

<Context path="/bob"
            reloadable="true" >
	<Parameter name="var" value="3" override="false"/>

When I get the value as follows, it returns null:
String var = getServletContext().getInitParameter("var");

This works in Tomcat 4.1. Is it not possible to do this in Tomcat 3.3,
or is there some trick? If not, is there a way to define a context
parameter outside of web.xml in Tomcat 3.3?

Thank you,

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message