What do you mean by "Use a welcome page"?  As far as I can tell I can't have 
welcome-file specify a resource that's inside the app (i.e., maps to an Action), it has 
to be an actual, physical file.  In other words, the web.xml tag is welcome-file, not 
welcome-url or welcome-resource, so it has to be a file.

I'm ok with this if that's the way it has to be, but it seems a bit klunky and 
I was wondering if there was a better way.  And it seems to be a generic 
problem; I do the same redirect/forward thing with Spring MVC apps.


Dave Newton wrote:
Rusty Wright wrote:
Is there a preferred way to "jump start" a web app when the user starts at the top; e.g., they use the url

   http://somehost.com/myapp/

What I'm doing now is putting a redirect in index.jsp, as follows. Is there a better way?

   <?xml version="1.0" encoding="ISO-8859-1" ?>

   <%@ page contentType="text/html; charset=UTF-8" %>

   <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"; %>

   <c:redirect
       url="/start.action"
   />

I want the naked, top url to have an action.

Use a welcome page or just do what you're doing?

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to