DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=37479>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=37479 Summary: Identify action paths and infer forwards Product: Struts Version: 1.3.0 Platform: Other OS/Version: other Status: NEW Severity: enhancement Priority: P2 Component: Controller AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] 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> -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
