On Fri, 2 Mar 2001, [iso-8859-1] Stef�n F. Stef�nsson wrote:
[ ... ]
> >> 2) With regards to the welcome files I want users to be able to
> >> go to the URL http://some.host.somewhere/ and not to the URL
> >>
>http://some.host.somewhere/servlet/com.decode.ips.webservice.controller.IPSControllerServlet.
> >> I think the reason for why I want that is pretty obvious.
> >
> >The 2.2 spec is not clear that this is supposed to work (although I
> >agree with you that it should). If Tomcat 3.x does not do this,
> >you could submit a feature request to make it so.
>
> At least it's not doing it for me. If I set a servlet in a welcome
> file list then nada... and none of the tricks that I've heard of
> works (doing a url mapping for something to the servlet and then
> putting that something in the welcome file list and so on...).
[ ... ]
FWIW, someone else and I are trying to do something similar. There
was just a bit of a thread here about it ("newbie servlet deploy
question"). From the FAQ-o-matic on the jakarta/tomcat site, I found
the suggestion to either:
1. add an index file that does a redirect to the appropriate URL (I
did that successfully with both a Refresh in an index.html file and
a RequestDispatcher forward() in a index.jsp) -- the problem though
was that it changed the "Location:" box in the browser, which I
didn't want to happen
or
2. use mod_rewrite (which I haven't tried yet, but plan to)
Anyway, sounds like this will be easier to do with the new 2.3 spec.
Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]