Re: Setting listings=true on a per context basis

2010-12-09 Thread Konstantin Kolinko
2010/12/9 Fergus McMenemie : > 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 corresponds to a folder

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 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 is there a quicker

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 r

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

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 declaration goes in tomcat/conf/web.xml No. The conf/web.xml file contains settings shared by *all* webapps. The declaration for a particular webapp goe

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 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 catalina/localhost/vendoraDocs

RE: Setting listings=true on a per context basis

2010-12-07 Thread Fergus McMenemie
>> 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

Re: Setting listings=true on a per context basis

2010-12-07 Thread Fergus McMenemie
On Tue, 07 Dec 2010 15:37:33 +0100, André Warnier 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 catalina/localhost/vendoraDocs.xml >> is a to

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 HTML

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,

RE: Setting listings=true on a per context basis

2010-12-07 Thread Fergus McMenemie
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" wrote: >> From: Fergus McMenemie [mailto:fer...@twig.me.uk] >> Subject: Re: Setting listings=true

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 setting

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:- VendorAlistings org.apache.catalina.servlets.DefaultServlet listings false 1 VendorAlistings / But tomcat

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:- The defaultServlet as defined within c:/tomcat/conf/web.xml has listings=false which suites fine for most cases. But for vendora I need listi

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:- The defaultServlet as defined within c:/tomcat/conf/web.xml has listings=false which suites fine for most cases. But for vendora I need listings=true. How do I turn listings on for just th