hi christopher,
On Thu, Feb 25, 2010 at 9:33 PM, Christopher Schultz
ch...@christopherschultz.net wrote:
You shouldn't declare Context elements within conf/server.xml in any
currently-supported version of Tomcat. Instead, put everything you need
in your webapp's META-INF/context.xml file.
On 26/02/2010 08:27, Ivan Longhi wrote:
hi christopher,
On Thu, Feb 25, 2010 at 9:33 PM, Christopher Schultz
ch...@christopherschultz.net wrote:
You shouldn't declareContext elements within conf/server.xml in any
currently-supported version of Tomcat. Instead, put everything you need
in your
Enable listings is sort of** a global setting.
Since the default servlet is declared in conf/web.xml - its inherited in
*every* webapp. So its config is also inherited. (Bummer)
BUT - if you add a WEB-INF/web.xml to EVERY webapp with the default
servlet settings - then you can remove the
thanks!!!
this should be the solution (and one more little question at the end of code):
conf/web.xml
servlet
servlet-namedefault/servlet-name
servlet-classorg.apache.catalina.servlets.DefaultServlet/servlet-class
init-param
ops
Parameter name=listings value=true / is useless
On Thu, Feb 25, 2010 at 3:14 PM, Ivan Longhi ivan.lon...@gmail.com wrote:
Context path=/test docBase=/path_to_some_dir/
Parameter name=listings value=true /
/Context
--
ciao,
ivan
From: Tim Funk [mailto:funk...@apache.org]
Subject: Re: listing directory content outside tomcat root
Since the default servlet is declared in conf/web.xml - its inherited
in *every* webapp. So its config is also inherited. (Bummer)
Not a bummer at all - it's a very good thing
From: Ivan Longhi [mailto:ivan.lon...@gmail.com]
Subject: Re: listing directory content outside tomcat root
is servlet-classorg.apache.catalina.servlets.DefaultServlet
/servlet-class the right solution?
Yes.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Ivan,
On 2/25/2010 9:14 AM, Ivan Longhi wrote:
this should be the solution (and one more little question at the end of code):
conf/web.xml
servlet
servlet-namedefault/servlet-name