Re: listing directory content outside tomcat root

2010-02-26 Thread Ivan Longhi
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.

Re: listing directory content outside tomcat root

2010-02-26 Thread Pid
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

Re: listing directory content outside tomcat root

2010-02-25 Thread Tim Funk
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

Re: listing directory content outside tomcat root

2010-02-25 Thread Ivan Longhi
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

Re: listing directory content outside tomcat root

2010-02-25 Thread Ivan Longhi
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

RE: listing directory content outside tomcat root

2010-02-25 Thread Caldarale, Charles R
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

RE: listing directory content outside tomcat root

2010-02-25 Thread Caldarale, Charles R
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

Re: listing directory content outside tomcat root

2010-02-25 Thread Christopher Schultz
-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