Dear Wiki user, You have subscribed to a wiki page or wiki category on "Struts Wiki" for change notification.
The following page has been changed by MichaelJouravlev: http://wiki.apache.org/struts/StrutsJumpToAnchor ------------------------------------------------------------------------------ + ## page was renamed from StrutsJumpingToAnchor How do I include an anchor name when forwarding from an Action? (i.e., how can I make the page returned to the browser jump to a specific section out of an Action?) Answer 1. If you name an anchor in your page (<a name="something">) and you want the browser to jump to that specific anchor when it is rendered, you would generally do something like <a href="mypage.htm#something"> if you were doing it from a link. Or, from a servlet, you might attach #something to the end of the page name when using a dispatcher to forward. If you try to append #something to the end of a forward name from an Action though (return mapping.findForward("myForward#something");) you will find that Struts throws an exception about not being able to find the forward. That is because it is looking for a forward that is literally "myForward#something" and won't find it.