tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Budi Kurniawan" <>
Subject Re: Servlet as Welcome File doesn't work
Date Tue, 02 Dec 2003 00:55:33 GMT
Servlet 2.4 (implemented by Tomcat 5) allows you to use a servlet as a welcome file. If you're
using Servlet 2.3, here is a trick:
- Create a JSP page that forwards to the servlet.
- Specify the JSP page as the welcome-file.


   -------Original Message-------
   &gt; From: SH Solutions &lt;;
   &gt; Subject: Servlet as Welcome File doesn't work
   &gt; Sent: 01 Dec 2003 23:58:51
   &gt;  Hello.
   &gt;  I'm using tomcat 4.1.29 on debian and I have the following problem:
   &gt;  I need to get &quot;/&quot; handled by my Servlet &quot;myPackage.Root&quot;,
but I do not want
   &gt;  to change the mapping of ordinary files.
   &gt;  Just as a welcome file would, but welcome-file does not apply to servlets,
   &gt;  right?
   &gt;  My solutions so far is to map &quot;/&quot; to my servlet an map any
other folder with
   &gt;  distinct context's, what surely is'nt what it was meant to be.
   &gt;  I did search the web and the usenet for a long time, since I assumed not to
   &gt;  be the first to run into this problem. But I didn't find anything.
   &gt;  Be aware that I did not enable the jsp-servlet, since I am not using jsps at
   &gt;  all.
   &gt;  If anyone can help me, I would appreciate it very much.
   &gt;  Thanks,
   &gt;  Steffen
   &gt;  PS: No native English speaker here - sorry.
   &gt;  ---------------------------------------------------------------------
   &gt;  To unsubscribe, e-mail:
   &gt;  For additional commands, e-mail:
   -------Original Message-------

Author of
- How Tomcat Works (sample chapters downloadable from 
- JavaServer Faces Programming (McGraw-Hill Osborne Media)
- Java for the Web with Servlets, JSP, and EJB (NewRiders)
- Java Web Development with Servlets, JSP, and EJB, Second Edition (Sams Publishing)
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message