You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2005/11/12 05:04:17 UTC

DO NOT REPLY [Bug 37479] New: - Identify action paths and infer forwards

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: dev@struts.apache.org
        ReportedBy: paul4christ79@yahoo.com


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: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org