You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Christopher Schultz (JIRA)" <de...@velocity.apache.org> on 2007/11/02 19:13:50 UTC
[jira] Closed: (VELTOOLS-82) StrutsLinkTool.setForward only sees
global-forwards, not local-forwards
[ https://issues.apache.org/jira/browse/VELTOOLS-82?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christopher Schultz closed VELTOOLS-82.
---------------------------------------
Verified fix.
> StrutsLinkTool.setForward only sees global-forwards, not local-forwards
> -----------------------------------------------------------------------
>
> Key: VELTOOLS-82
> URL: https://issues.apache.org/jira/browse/VELTOOLS-82
> Project: Velocity Tools
> Issue Type: Improvement
> Components: VelocityStruts
> Affects Versions: 1.1, 1.2, 1.3, 1.4, 2.0
> Environment: Velocity-Tools 1.3 / Struts 1.3.8
> Reporter: Christopher Schultz
> Priority: Minor
> Fix For: 1.4, 2.0
>
> Attachments: VELTOOLS-82.diff.txt, VELTOOLS-82doc.diff
>
>
> 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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org