tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <>
Subject Re: Servlet front page without redirect - Tomcat 4.1 with mod_rewrite and mod_jk2
Date Tue, 09 Sep 2003 03:54:07 GMT

"Mike Curwen" <> wrote in message
> Just to expound on this point:
> > -----Original Message-----
> > From: news [] On Behalf Of Bill Barker
> > Sent: Saturday, September 06, 2003 10:43 PM
> > To:
> > Subject: Re: Servlet front page without redirect - Tomcat 4.1
> > with mod_rewrite and mod_jk2
> >
> >
> > This can be done for:
> > 1) TC 3.3.2-dev with a non-default setting.
> > 2) TC 5.0.9+ with default settings.
> The reason 5.x allows you to do this, is because it follows the 2.4
> Servlet spec, which now allows servlets to be included in the
> welcome-file list (where before, it was only HTML or JSP).  So if you're
> completely desperate to have this functionality, and a simple META
> refresh from index.jsp will NOT do...  can you upgrade to the 5.x
> tomcat?
> For Bill: What's the 3.3.2 hack?  And why was it taken out?

If you set the 'useInternal="true"' attribute on the StaticInterceptor
element in server.xml, Tomcat does an internal redirect to the welcome file.
If you set the 'strict23Welcome="true"' attribute, the you can use
pre-compiled JSPs (or, for that matter, any servlet that maps to the welcome

The 'useInternal' is off by default, a) so as to not break any apps that
were depending on the old behavior, and b) it's a bit of a grey area in the
2.2 Servlet-spec on that this is allowed (although, of course, it happens to
conform to the 2.4 spec :).

The 'strict23Welcome' is off be default, since it isn't very optimized at
the moment (so it add some overhead even in the case where you have only
static welcome-files).

View raw message