I tried that first, but it yields "viewuser#userPreferences.action." I found the answer by diving into the source code. The key insight is that this is called an "anchor" (not a hash). This works:
<result name="success" type="redirectAction"> <param name="actionName">viewuser</param> <param name="anchor">userPreferences</param> </result> This document should be updated: http://struts.apache.org/2.2.3/docs/redirect-action-result.html The example at the bottom is clearly intended to be a "complete" example, but ignores the attributes supported by the extended class: http://struts.apache.org/2.2.3/struts2-core/apidocs/org/apache/struts2/dispatcher/ServletRedirectResult.html On Jun 1, 2011, at 11:43 AM, Dave Newton - davelnew...@gmail.com wrote: > On Wed, Jun 1, 2011 at 11:51 AM, wrote: >> Does the redirectAction result support [...] a hash tag to append? >> >> For example, this: >> <result name="success" type="redirectAction" >> hash="userPreferences">viewuser</result> > > What happens when you try it? > > Did you try <result ...>viewuser#userPreferences</result>? I don't > know if that'd work or not, but easy enough to find out. > > Dave > > --------------------------------------------------------------------- > 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