Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.1, 1.2, 1.3, 1.4, 2.x
-
None
-
Velocity-Tools 1.3 / Struts 1.3.8
Description
Use of $link.setForward('forward-name') will not find forward local forwards for the currently-executing action mapping.
For instance, if you have the following configuration:
<global-forwards>
<forward name="foo" path="/foo.jsp" />
</global-forwards>
<action-mappings>
<action path="/myAction" ...>
<forward name="foo" path="/bar.jsp" />
</action>
</action-mappings>
Using $link.setForward('foo') will result in "foo.jsp" instead of "bar.jsp". I believe that the latter is more in line with the spirit of Struts' forward hierarchy.