Hi,
I am exploring TC 5.0.18 and found that the <Parameter> are not being set to the ServletContext.
Here is my context.xml:
<Context path="/explorer" docBase="explorer" debug="0" reloadable="true" crossContext="true">
<Logger className="org.apache.catalina.logger.FileLogger" prefix="explorer_log." suffix=".txt" timestamp="true"/>
<Environment name="maxExemptions" type="java.lang.Integer" value="15"/>
<Parameter name="country" value="Canada" override="false"/>
</Context>


In my InitServlet.init() method, I call:
ServletConfig conf = ..
ServletContext ctx = conf.getServletContext();
String paramValue = ctx.getInitParameter("country");

paramValue is NULL. Is this a know bug/issue? Or am I not doing somthing right?

Rick Szeto


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



Reply via email to