Nice, that 'merge' parameter.
I'm still using Struts2 2.1.6 and had already stumbled on this.
Worked around it using params.excludeParams on the statically-parameterized
actions to filter out the static params.
Browsing the latest distribution I've noticed that it bundles
xwork-core-2.1.6.jar but the latest version listed on the XWork home page is
2.1.5... has Struts2 forked xwork-core-2.1.6 from the official XWork?


2009/7/17 Musachy Barroso <musa...@gmail.com>

> 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