tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jean-François Ménard" <jeanfrancoismen...@gmail.com>
Subject Problem with Context Parameters
Date Mon, 07 Jul 2008 22:15:26 GMT
Hi all,

Using Tomcat 6.0.13, I try to define some context parameters in my
context file (in conf/Cataline/localhost/<app_name>.xml) as described
in the documentation
(http://tomcat.apache.org/tomcat-6.0-doc/config/context.html) but it
simply doesn't work!  I can see the parameters defined in my web.xml,
but not those defined in my context file.

Is that supposed to work at all?

Example:

<Context path="application">

  <Parameter name ="aParameterName" value="aValue" />

</Context>

Shouldn't the parameter be visible by the servlet context? ex.
context.getInitParameter("aParameterName")

Am I missing something, or Tomcat is not working as described in the doc?

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message