« Return to Thread: how to add parameters to result type

Re: how to add parameters to result type

by newton.dave :: Rate this Message:

Reply to Author | View in Thread

Bhaarat Sharma wrote:

> I have a simple result type like the following
>
> <action name="Verification" class="gaction.reports.Verification">
>         <result>/thirdpartyincome/pendingVerification.jsp</result>
>     </action>
>
> how can i add parameters to this resulttype? and have values of parameters
> come from my action class?
>
> for example when result type is 'redirect-action' then we can do something
> like this
>
>           <result name="success" type="redirect-action">
>             <param name="actionName">Information</param>
>             <param name= "pageIndex">${pageIndex}</param>
>             <param name= "PageSize">50</param>
>             <param name= "Value">${phaValue}</param>
>           </result>
>

According to the documentation you can:

http://struts.apache.org/2.x/docs/result-configuration.html
http://struts.apache.org/2.x/docs/parameters-in-configuration-results.html

Dave

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

 « Return to Thread: how to add parameters to result type