Thanks for the info.
John
On Wed, 9 Jul 2003 15:43:51 -0500, Mike Curwen <[EMAIL PROTECTED]> wrote:
-----Original Message-----
From: John Turner [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 3:31 PM
To: Tomcat Users List
Subject: Re: setting up a root servlet / getting images to appear in Tomcat 4.1.24
OK. I still don't get it, but I don't want to prolong the thread.
Thanks for the info.
I'm not sure where the confusion is. It's an extremely limited case, but valid (I think). if you want a servlet run when someone says: www.somesite.com/
Then you need to do 2 things in Tomcat stand-alone map "" to your web app in server.xml map *ALL* incoming requests in web.xml to the servlet that ought to respond.
But this has the additional effect of mapping requests for images and style sheets and such.
alternate (less confusing?) approach: Use a welcome-file list. If you request www.somesite.com/ then your welcome-file will be kickmeto.jsp
kickmeto.jsp does a forward, include or sendRedirect (whichever you like) that goes to your "actual" front-door servlet.
response.sendRedirect("foo");
/foo is a single, non-monolithic mapping, and so now images and css are served statically, and your front-door servlet is also serving all requests made to /foo (which kickmeto.jsp accomplishes).
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
