I found this from a struts list:

Your problem is due to a common misconception of how
the welcome file list works.  The welcome file list in
the web.xml file defines the default file(s) for all
directories, including the root and all subdirectories.
 It does not specify the URL of a default page for the
web application.  If you request
http://myserver/myapp/, the application looks for
http://myserver/myapp/index.jsp.  If you request
http://myserver/myapp/mydirectory/, the application
looks for http://myserver/myapp/mydirectory/index.jsp.

The only work-around for your situation is to perform a
forward from /index.jsp to /WEB-INF/JSP/index.jsp.

--------------------------------------------------

I hope this helps.

-Matt

"Taavi Tiirik" wrote

> 
> > You could use a forward in your jsp to your action.
> 
> Yes, I know... and this involves creating index.jsp
> for every directory. Now, if there would be a filter
> that does this forwarding... Has somebody done this?
> 
> with best wishes,
> Taavi
> 
> > > Is it possible to define certain webwork action
as a
> > > <welcome-file> for tomcat 4?
> 
> 
> _______________________________________________
> Webwork-user mailing list
> [EMAIL PROTECTED]
>
https://lists.sourceforge.net/lists/listinfo/webwork-user



_______________________________________________
Webwork-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webwork-user

Reply via email to