struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bhaarat Sharma <bhaara...@gmail.com>
Subject Re: how to add parameters to result type
Date Mon, 06 Jul 2009 17:58:22 GMT
following the documentation on this page:
http://struts.apache.org/2.x/docs/result-configuration.html
<http://struts.apache.org/2.x/docs/result-configuration.html>I tried
something like this
        <result name="success_pagination" type="dispatcher">
            <param
name="location">/reports/identity/identitreport.jsp</param>
            <param name="pageIndex">${pageIndex}</param>
            <param name="phaPageSize">${phaPageSize}</param>
            <param name="goToTab">${goToTab}</param>
            <param name="Code">${code}</param>
            <param name="Type">${type}</param>
            <param name="month">${month}</param>
        </result>


but the parameters are still not getting passed to the page...


On Fri, Jul 3, 2009 at 10:53 PM, Dave Newton <newton.dave@yahoo.com> wrote:

> 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@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message