[Opensource] welcome-file as a servlet - workaround found

Mike Traum mtraum at cirnetwork.org
Fri Apr 11 08:57:23 PDT 2003


It appears that this is a bug in tomcat (and probably other servlet
containers) because the servlet spec is kinda vague. There's currently a
Tomcat bug open on this, so I would expect it to be resolved soon. See
http://issues.apache.org/bugzilla/show_bug.cgi?id=9016.

The bug report gives a workaround that I just tested successfully. You can
fool it by having a file named the same as the url mapping you have the
servlet as. For example, if you want the welcome-file to be Login.do, just
make sure there is a dummy file (it won't actually get displayed) named
Login.do.

hth,
mike

     -----Original Message-----
     From: Fagan, Kyle D Mr TAMC 
     [mailto:Kyle.Fagan at haw.tamc.amedd.army.mil]
     Sent: Thursday, April 10, 2003 4:14 PM
     To: 'opensource at jcorporate.com'
     Subject: [Opensource] (no subject)
     
     
     Hello Mike,
     
     I saw your questions at:
     http://mail.jcorporate.com/pipermail/opensource/2002-May/01
     1088.html
     
     I have been having the same problem. The only somewhat 
     good solution I found
     was to servlet-map / to the controller in the web.xml, 
     change action path to
     / in the stuts-config.xml, and change the jsp to submit to /.
     
     I don't like submitting to /. Let me know if you've found 
     a better solution.
     
     Kyle Fagan
     IMD Computer Specialist
     kyle.fagan at amedd.army.mil
     
     _______________________________________________
     Opensource mailing list
     Opensource at jcorporate.com
     http://mail.jcorporate.com/mailman/listinfo/opensource
     Archives: http://mail.jcorporate.com/pipermail/opensource/
     



More information about the Opensource mailing list