You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "Craig McClanahan (JIRA)" <ji...@apache.org> on 2006/04/26 08:14:55 UTC
[jira] Moved: (SHALE-147) Identify action paths
[ http://issues.apache.org/struts/browse/SHALE-147?page=all ]
Craig McClanahan moved STR-2642 to SHALE-147:
---------------------------------------------
Project: Shale (was: Struts Action 1)
Key: SHALE-147 (was: STR-2642)
Component: (was: Action)
Version: (was: 1.3.0)
Assign To: (was: Struts Developer Mailing List)
> Identify action paths
> ---------------------
>
> Key: SHALE-147
> URL: http://issues.apache.org/struts/browse/SHALE-147
> Project: Shale
> Type: Improvement
> Environment: Operating System: other
> Platform: Other
> Reporter: Paul Benedict
> Priority: Minor
> Attachments: patch.txt, patch.txt
>
> Many times I need to redirect to another Struts actions. Recently I've come
> across the problem of needing to rename my action paths but this became a real
> nightmare to keep the action names as well as my redirect (forward) paths in
> synchronization.
> I propose adding an id attribute to the <action> tag so that it can be referred
> to in <forward> tags and its URL would be inferred, rather than be explicitly
> listed out. I find this proposal also to work well as a replacement for global
> forwards.
> <action id="viewJournal" path="/journal/view" ...>
> ...
> </action>
> <action id="saveJournal" path="/journal/save" ...>
> <forward name="success" path="id:viewJournal" redirect="true" />
> </action>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org