[ 
http://issues.apache.org/struts/browse/STR-2864?page=comments#action_38039 ] 
            
Wendy Smoak commented on STR-2864:
----------------------------------

Discussion thread: 
http://www.nabble.com/-Fwd%3A--jira--Updated%3A-%28STR-2864%29-Add-actionId-attribute-to-action-mapping--t2168058.html

> Add actionId attribute to action mapping
> ----------------------------------------
>
>                 Key: STR-2864
>                 URL: http://issues.apache.org/struts/browse/STR-2864
>             Project: Struts 1
>          Issue Type: Improvement
>          Components: Core
>         Environment: Operating System: other
> Platform: Other
>            Reporter: Paul Benedict
>         Assigned To: Paul Benedict
>             Fix For: 1.3.6
>
>         Attachments: patch.txt, patch.txt, STR-2864.patch.txt, 
> struts-config.xml
>
>
> 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

        

Reply via email to