Re: Setting listings=true on a per context basis

2010-12-09 Thread Konstantin Kolinko
2010/12/9 Fergus McMenemie fer...@twig.me.uk: If you do not want to bother with DefaultServlet, you can implement a javax.servlet.Filter that will output a listing for any URL ending with /. BTW, Tomcat will automatically send to the browser a redirect from foo - foo/ for any URL that

Re: Setting listings=true on a per context basis

2010-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fergus, On 12/7/2010 9:27 AM, Fergus McMenemie wrote: Thanks for the response. Other than reading the 300 page servlet spec is there a quicker way to accomplish what I want. Of the 354 pages of the Servlet Spec 2.5, only pages 19-154 are worth

Re: Setting listings=true on a per context basis

2010-12-08 Thread Fergus McMenemie
Chris, Thanks very much! On Wed, 08 Dec 2010 17:48:31 -0500, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fergus, On 12/7/2010 9:27 AM, Fergus McMenemie wrote: Thanks for the response. Other than reading the 300 page servlet spec

Setting listings=true on a per context basis

2010-12-07 Thread Fergus McMenemie
Beginner Question! I have a c:/tomcat/conf/catalina/localhost/vendoraDocs.xml which contains two lines:- Context docBase=D:\vendora\Docs /Context The defaultServlet as defined within c:/tomcat/conf/web.xml has listings=false which suites fine for most cases. But for vendora I need

Re: Setting listings=true on a per context basis

2010-12-07 Thread Mark Thomas
On 07/12/2010 10:27, Fergus McMenemie wrote: Beginner Question! I have a c:/tomcat/conf/catalina/localhost/vendoraDocs.xml which contains two lines:- Context docBase=D:\vendora\Docs /Context The defaultServlet as defined within c:/tomcat/conf/web.xml has listings=false which suites fine for

Re: Setting listings=true on a per context basis

2010-12-07 Thread Fergus McMenemie
Mark, Thanks for the prompt reply, After lots of surfing the next I had tried adjusting c:/tomcat/conf/catalina/localhost/vendoraDocs.xml as follows:- servlet servlet-nameVendorAlistings/servlet-name servlet-classorg.apache.catalina.servlets.DefaultServlet /servlet-class init-param

RE: Setting listings=true on a per context basis

2010-12-07 Thread Caldarale, Charles R
From: Fergus McMenemie [mailto:fer...@twig.me.uk] Subject: Re: Setting listings=true on a per context basis After lots of surfing the next I had tried adjusting c:/tomcat/conf/catalina/localhost/vendoraDocs.xml as follows:- Sorry, you got the wrong place. The servlet settings go in your

RE: Setting listings=true on a per context basis

2010-12-07 Thread Fergus McMenemie
for browsing through tomcat. It is not worth setting up IIS for, as we already using tomcat for other purposes. Regards On Tue, 7 Dec 2010 07:57:21 -0600, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Fergus McMenemie [mailto:fer...@twig.me.uk] Subject: Re: Setting listings=true on a per

RE: Setting listings=true on a per context basis

2010-12-07 Thread Caldarale, Charles R
From: Fergus McMenemie [mailto:fer...@twig.me.uk] Subject: RE: Setting listings=true on a per context basis Other than reading the 300 page servlet spec is there a quicker way to accomplish what I want. My response told you exactly where to make the updates. Regardless, the spec

Re: Setting listings=true on a per context basis

2010-12-07 Thread André Warnier
Fergus McMenemie wrote: Thanks for the response. Other than reading the 300 page servlet spec is there a quicker way to accomplish what I want. Further, are you saying that use of catalina/localhost/vendoraDocs.xml is a tomcat only solution. How do I best standup a set of vendor supplied

RE: Setting listings=true on a per context basis

2010-12-07 Thread Fergus McMenemie
...@twig.me.uk] Subject: RE: Setting listings=true on a per context basis Other than reading the 300 page servlet spec is there a quicker way to accomplish what I want. My response told you exactly where to make the updates. Regardless, the spec is an easy read (at least the 2.5 version

Re: Setting listings=true on a per context basis

2010-12-07 Thread André Warnier
Fergus McMenemie wrote: On Tue, 07 Dec 2010 15:37:33 +0100, André Warnier a...@ice-sa.com wrote: Fergus McMenemie wrote: Thanks for the response. Other than reading the 300 page servlet spec is there a quicker way to accomplish what I want. Further, are you saying that use of

RE: Setting listings=true on a per context basis

2010-12-07 Thread Caldarale, Charles R
From: Fergus McMenemie [mailto:fer...@twig.me.uk] Subject: RE: Setting listings=true on a per context basis So the servlet declaration goes in tomcat/conf/web.xml No. The conf/web.xml file contains settings shared by *all* webapps. The servlet declaration for a particular webapp goes

RE: Setting listings=true on a per context basis

2010-12-07 Thread Caldarale, Charles R
From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: Setting listings=true on a per context basis in which you will find a file named server.xml. Can you paste the content of that file here, after removing the comments and sensitive information such as passwords ? That would give us