This http://www.vitarara.org/cms/struts_2_cookbook/post_and_redirect article about post and redirect in struts 2 explains how to redirect to a dynamically evaluated action.
However, if I use a param which references an action property called "id", it doesn't work. <result type="redirect-action"> <param name="actionName">${redirectActionName}</param> <param name="namespace">/admin/holidays</param> <param name="parse">true</param> <param name="id">${id}</param> </result> But when I changed the property (and its getter and setter) to be called "aid", it works OK: <result type="redirect-action"> .. as above... .............. <param name="id">${aid}</param> </result> Also (possibly unrelated), again with a property called id on my action, when I use the <s:url> tag, it automatically adds the current value of the action's id to the URL even if I don't want it to. The docs don't mention that this should happen (it's annoying). It seems as if naming an action property id should be avoided... -- View this message in context: http://www.nabble.com/Avoid-having-an-action-property-called-id-tp18115239p18115239.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]