tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Budi Kurniawan" <b...@brainysoftware.com>
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.

budi.



   -------Original Message-------
   &gt; From: SH Solutions &lt;info@sh-solutions.de&gt;
   &gt; Subject: Servlet as Welcome File doesn't work
   &gt; Sent: 01 Dec 2003 23:58:51
   &gt;
   &gt;  Hello.
   &gt;  
   &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;  
   &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;  
   &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;  
   &gt;  If anyone can help me, I would appreciate it very much.
   &gt;  
   &gt;  Thanks,
   &gt;  
   &gt;  Steffen
   &gt;  
   &gt;  
   &gt;  PS: No native English speaker here - sorry.
   &gt;  
   &gt;  
   &gt;  ---------------------------------------------------------------------
   &gt;  To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
   &gt;  For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
   -------Original Message-------



Author of
- How Tomcat Works (sample chapters downloadable from www.brainysoftware.com) 
- 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)
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message