struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wes Wannemacher" <w...@wantii.com>
Subject Re: calling action
Date Thu, 04 Oct 2007 22:31:12 GMT
How about ->

<action name="YourFirstAction" class="...">
    <result type="redirect-action">
            <param name="actionName">YourSecondAction</param>
    </result>

http://struts.apache.org/2.0.9/docs/redirect-action-result.html

The downside is that it is a redirect, so you any data from
YourFirstAction that you want in YourSecondAction will have to be put
into the session.

-W

On 10/4/07, Henry Park <hspark182@hotmail.com> wrote:
>
> How can I forward to a url from within my action class?  For example, instead of 'return
SUCCESS' I just want to call another action... something like 'return SomeAction!doit.action.
 Any ideas? Thanks in advance.
> _________________________________________________________________
> Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it now.
> http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=CL100626971033


-- 
Wesley Wannemacher
President, Head Engineer/Consultant
WanTii, Inc.
http://www.wantii.com

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


Mime
View raw message