The actual problem is I fixed struts.properties to use ActionMapper as show
below

struts.mapper.class=org.apache.struts2.dispatcher.mapper.DefaultActionMapper

but it still uses ...... ServletActionRedirectResult


On 2/7/07, cilquirm <[EMAIL PROTECTED]> wrote:


My apologies. I read the message wrong.

Is the problem that the the value is not being set on the action being
redirected to?

Looking at the error message, and the source, it's just a warning.
Processing continues as normal after that, so it should be setting the
values correctly.

I've not used 'redirect-action' with extra parameters like below, but I
have
done so using 'redirect' ( and the former is extended from the latter )
with
success.

-a



Dave Newton-4 wrote:
>
> --- cilquirm <[EMAIL PROTECTED]> wrote:
>> By specifying the "queryReportBeanName" inside the
>> <result/> tag, you're actually setting the value on
>> the redirect-action object [...]
>> if you want to set a static param on your own action
>> then take it out from under the <result/> tag and
> put
>>  it in inside the <action/> tag.
>
> Just a clarification, that is direct contradiction to
> the docs at
> http://cwiki.apache.org/WW/redirect-action-result.html:
>
> <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>
>
> because you're passing parameters to the *result*
> action, NOT the action that is *generating* the
> result.
>
> This issue is in JIRA at
> https://issues.apache.org/struts/browse/WW-1714
>
> So either the docs are wrong, or there's a bug.
>
> d.
>
>
>
>
>
____________________________________________________________________________________
> Cheap talk?
> Check out Yahoo! Messenger's low PC-to-Phone call rates.
> http://voice.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

--
View this message in context:
http://www.nabble.com/how-to-specify-ActionMapper-tf3187257.html#a8849592
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Ravi Mangalagiri
www.bluepitch.org (My personal website. Coming soon!)
703-505-4240 (c)

Reply via email to