Unfortunately this is a bug/enhancement dependent on your point of view (what created this problem fixed other bugs). The way to get it to work like you want is to add a "merge" param set to "false" in the "staticParams" interceptor.
For reference: https://issues.apache.org/struts/browse/WW-2970 http://jira.opensymphony.com/browse/XW-709 This should have not happened, but we just heard about it, so it is kind of late :) musachy On Mon, Dec 7, 2009 at 4:21 AM, Hans Solo <hans.sol...@googlemail.com> wrote: > Hi, > > I’m using the <param>-Tag in an <action>-Tag: > > <action name="manageUserAttributes_*" method="{1}" > class="springManagedUserAttributesAction"> > > <param name="menu">access/users</param> > > <param name="actionMapping">manageUserAttributes</param> > > <result name="list">/jsp/access/users/attributes/list.jsp</result> > > </action> > > > The interceptor-stack is the defaultStack. > > I’ve also defined getter/setter for these parameters (menu/actionMapping). > > Now on some calls, I’d like to overwrite e.g. the menu-parameter in the > action. > > This works for struts version 2.1.2. > > But if I migrate to version 2.1.6 or 2.1.8.1, it is no longer possible > for me to overwrite these parameters! > > The setter of the parameter is called several times and ends always > with setting the value that is given in the struts-mapping. > > So it is not possible to set the value of the parameter explicit in > the action and read it in the result. > > > Example: > > call: manageUserAttributes_list > > method in the action: > > public String list() { > > setMenu(null); > > user = userService.getUser(user.getId()); > > return RESULT_LIST; > > } > > If I process the menu-variable in the resulting jsp, the value is > access/users. > > Does someone know about this behaviour? > > Am I doing something wrong or is it no longer possible to change these > parameters in actions? > > > Thank you > > Tim > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org