You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Peter Milne <p....@ntlworld.com> on 2007/02/18 12:55:15 UTC
Mailreader Welcome ActionMapping
I notice in the Mailreader ver 1.3.5 app that struts-config.xml contains
2 ActionMappings for Welcome.jsp, what's the reason for this?
<!-- Display welcome page -->
<action
path="/Welcome"
type="org.apache.struts.apps.mailreader.actions.WelcomeAction">
<forward
name="Success"
path="/Welcome.jsp"/>
</action>
<!-- Display welcome page -->
<action
path="/Welcome"
forward="/Welcome.jsp"/>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Mailreader Welcome ActionMapping
Posted by Peter Milne <p....@ntlworld.com>.
So when index.jsp executes <logic:redirect action="/Welcome"/> which
mapping would be followed?
Thanks, Peter
> Hi,
>
> the first ones goes through a action classes, and the second one is just a
> forward action which would only forward to the welcome.jsp
>
> Thanks,
>
> Nuwan
>
>
> ----- Original Message -----
> From: "Peter Milne" <p....@ntlworld.com>
> To: "Struts User List" <us...@struts.apache.org>
> Sent: Sunday, February 18, 2007 11:55 AM
> Subject: Mailreader Welcome ActionMapping
>
>
> >I notice in the Mailreader ver 1.3.5 app that struts-config.xml contains
> > 2 ActionMappings for Welcome.jsp, what's the reason for this?
> >
> > <!-- Display welcome page -->
> > <action
> > path="/Welcome"
> >
> > type="org.apache.struts.apps.mailreader.actions.WelcomeAction">
> > <forward
> > name="Success"
> > path="/Welcome.jsp"/>
> > </action>
> >
> > <!-- Display welcome page -->
> > <action
> > path="/Welcome"
> > forward="/Welcome.jsp"/>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Mailreader Welcome ActionMapping
Posted by Nuwan Chandrasoma <my...@gmail.com>.
Hi,
the first ones goes through a action classes, and the second one is just a
forward action which would only forward to the welcome.jsp
Thanks,
Nuwan
----- Original Message -----
From: "Peter Milne" <p....@ntlworld.com>
To: "Struts User List" <us...@struts.apache.org>
Sent: Sunday, February 18, 2007 11:55 AM
Subject: Mailreader Welcome ActionMapping
>I notice in the Mailreader ver 1.3.5 app that struts-config.xml contains
> 2 ActionMappings for Welcome.jsp, what's the reason for this?
>
> <!-- Display welcome page -->
> <action
> path="/Welcome"
>
> type="org.apache.struts.apps.mailreader.actions.WelcomeAction">
> <forward
> name="Success"
> path="/Welcome.jsp"/>
> </action>
>
> <!-- Display welcome page -->
> <action
> path="/Welcome"
> forward="/Welcome.jsp"/>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org