if you follow the link wes supplied from result-types for redirection-action
http://struts.apache.org/2.1.6/docs/redirect-action-result.html
take note required params of
actionName
namespace
a fairly comprehensive example used to construct namespace=/genReport
actionName=generateReport
(suffixed with
reportType param
width param
height param
}
<package name="passingRequestParameters" extends="struts-default"
namespace="/passingRequestParameters">
<-- Pass parameters (reportType, width and height) -->
<!--
The redirect-action url generated will be :
/genReport/generateReport.action?reportType=pie&width=100&height=100
-->
<action name="gatherReportInfo" class="...">
<result name="showReportResult" type="redirect-action">
<param name="actionName">generateReport</param>
<param name="namespace">/genReport</param>
<param name="reportType">pie</param>
<param name="width">100</param>
<param name="height">100</param>
</result>
</action>
</package>are the examples provided clear enough to follow?
Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung.
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est
interdite. Ce message sert à l'information seulement et n'aura pas n'importe
quel effet légalement obligatoire. Étant donné que les email peuvent facilement
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité
pour le contenu fourni.
> Date: Fri, 29 May 2009 15:32:42 -0400
> Subject: Re: Cant find @Result type=? list in docs
> From: [email protected]
> To: [email protected]
>
> It is redirectAction
>
> The docs are supposed to auto-update, but they haven't been recently.
> Apache Infra is working on it.
>
> -Wes
>
> On Fri, May 29, 2009 at 2:57 PM, Jim Collings <[email protected]> wrote:
> > @Result(name="success", location="http://struts.apache.org",
> > type="redirect")
> >
> > Question was supposed to be: "In the line above, what are the
> > possibilities for type=?"
> >
> > I think the answer is:
> > http://struts.apache.org/2.1.6/docs/result-types.html however, I just
> > tried "redirect-action" mentioned in these docs and either I don't
> > know how to use it, or it doesn't work.
> >
> > On Fri, May 29, 2009 at 2:45 PM, Wes Wannemacher <[email protected]> wrote:
> >> http://struts.apache.org/2.x/docs/convention-plugin.html#ConventionPlugin-Resultannotation
> >>
> >> -Wes
> >>
> >> On Fri, May 29, 2009 at 2:20 PM, Jim Collings <[email protected]> wrote:
> >>> So what are the different options for setting type in an @Result
> >>> annotation and what are they for? Can't find this in the docs.
> >>>
> >>> Jim C.
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: [email protected]
> >>> For additional commands, e-mail: [email protected]
> >>>
> >>>
> >>
> >>
> >>
> >> --
> >> Wes Wannemacher
> >> Author - Struts 2 In Practice
> >> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> >> http://www.manning.com/wannemacher
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [email protected]
> >> For additional commands, e-mail: [email protected]
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
>
>
>
> --
> Wes Wannemacher
> Author - Struts 2 In Practice
> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> http://www.manning.com/wannemacher
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
_________________________________________________________________
Hotmail® goes with you.
http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_Tutorial_Mobile1_052009