You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Craig McClanahan (JIRA)" <ji...@apache.org> on 2006/05/08 10:05:33 UTC
[jira] Commented: (SHALE-147) Identify action paths
[ http://issues.apache.org/struts/browse/SHALE-147?page=comments#action_37321 ]
Craig McClanahan commented on SHALE-147:
----------------------------------------
This is actually an SAF1 issue, so I'm going to move it over.
> 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