I use this:

myapp/index.jsp 
(only 1 line of code)
-----------------------------------
<jsp:forward page="/start.action"/>


myapp/WEB-INF/web.xml
(notice "<dispatcher>FORWARD</dispatcher>"s)
-----------------------------------
<!-- ... -->
        <filter-mapping>
                <filter-name>StrutsPrepareFilter</filter-name>
                <url-pattern>/*</url-pattern>
                <dispatcher>REQUEST</dispatcher>
                <dispatcher>FORWARD</dispatcher>
        </filter-mapping>
        <filter-mapping>
                <filter-name>StrutsExecuteFilter</filter-name>
                <url-pattern>/*</url-pattern>
                <dispatcher>REQUEST</dispatcher>
                <dispatcher>FORWARD</dispatcher>
        </filter-mapping>
<!-- ... -->



Rusty Wright-2 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.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/preferred-way-to-jump-start-app-into-struts--tp25204817p25205541.html
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to