You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Anna Chen <yc...@jgsi.com> on 2002/01/25 16:44:52 UTC
welcome-file-list
Hi, All
Can I put an action instead of a page in the welcome-file-list like:
<welcome-file-list>
<welcome-file>/do/login</welcome-file>
</welcome-file-list>
Thanks
Anna
Re: welcome-file-list
Posted by Mark Woon <mo...@SMI.Stanford.EDU>.
Anna Chen wrote:
> Can I put an action instead of a page in the welcome-file-list like:
> <welcome-file-list>
> <welcome-file>/do/login</welcome-file>
> </welcome-file-list>
Nope. The servlet container will look for an actual file at that path.
You need to have a index.html/jsp that forwards to your login page. For
example, an index.jsp that had:
<%@ page contentType="text/html" %>
<jsp:forward page="/do/login" />
-Mark
Who remembers asking a similar question when he first got his hands on
Struts...
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>