All 3 of those are great solutions. Thanks to both of you.
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker
Sent: Tuesday, September 16, 2003 10:16 PM
To: [EMAIL PROTECTED]
Subject: Re: Apache + Tomcat, a default servlet, and static content
If you
Apologies if this is a dupe. I just realized I sent the first one from
an account that is not subscribed
**
Once more with feeling?
Bill Barker, John Turner and others might recognize this question. Yes,
it's me AGAIN.
httpd.conf:
That is because your have overridden the default servlet. It is now your
servlet's job to also serve static content.
A simple workaround: Extend the DefaultServlet, then use super.doGet(),
super.doPost() ... when your servlet doesn't want the mapping.
-Tim
Mike Curwen wrote:
Apologies if
Once more with feeling?
Bill Barker, John Turner and others might recognize this question. Yes,
it's me AGAIN.
httpd.conf:
VirtualHost 205.200.100.109
ServerName foo.myfoo.com
ServerAlias www.foo.myfoo.com
DocumentRoot /home/webhome/myfoo
#deny WEB-INF
Location
If you have only a small number of static file types, then you could also
do:
servlet-mapping
servlet-namedefault/servlet-name
url-pattern*.gif/url-pattern
/servlet-mapping
!-- repeat as necessary --
Another trick is to include in your servlet something like:
ServletContext