Rick
Daniel Gibby wrote:
I believe the <Parameter line is wrong.
It should be in the format of
<context-param> <param-name>SyslogConfig</param-name> <param-value>/usr/local/etc/rr/sales-syslog.xml</param-value> <description>File containing the Syslog configuration for this webapp</description> </context-param> And this should be in your web.xml... I don't think that you can put the parameters into server.xml in the context... maybe you can, but not that I know about.
Daniel Gibby
Rick Szeto wrote:
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]
--------------------------------------------------------------------- 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]