We cant change it because it would break backward compatibility. I
added a "merge" parameter to the static parameters
interceptor(defaults to true):

http://jira.opensymphony.com/browse/XW-709

fixed in xwork trunk. Thanks for reporting!

musachy

On Fri, Jul 17, 2009 at 12:02 PM, Dale Newfield<d...@newfield.org> wrote:
> Musachy Barroso wrote:
>>
>> Ok I see it now. The staticparams interceptor adds the params to the
>> request params map, so that would explain why it is called again. We
>> could add a setting to the result to prevent this if needed.
>
> I would argue that each of {staticP,actionMappingP,p}arams should both set
> the discovered and acceptable params on the action and add the discovered
> and acceptable params to the map so that ParameterAware actions can be
> handed the full set of parameters detected by the interceptors.  It sounds
> like params is setting both those discovered by it and those that already
> managed to get into that map before it runs. This shouldn't be a big deal as
> setting a parameter should be idempotent, but I would agree that this is a
> bug.
>
> -Dale
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

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

Reply via email to