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/30 17:39:18 UTC

DO NOT REPLY [Bug 37479] - Identify action paths

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


paul4christ79@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Identify action paths and   |Identify action paths
                   |infer forwards              |




------- Additional Comments From paul4christ79@yahoo.com  2005-11-30 17:39 -------
Craig, I don't think you understood my suggestion. Did you view my patch at all?
If you haven't seen the patch, it will generate the action path when you
reference an action in a forward. I am not taking away logical outcomes from an
action - all I am doing is enhanching the logical outcomes so that they can
automatically build the path to the actions they want to invoke. You would still
forward to "success" (or whatever) and the "success" outcome could then build
the URI to the correct action.

I unfortunately have to press on with my disagreement. How can you co-develop
Shale which relies on Spring but say, in so many words, that referencing is not
good for Struts? Look also at WebWork which actually assigns aliases to their
actions:

  <action name="LoginAction" alias="loginJSP">...</action>
  
I really think there is *added value* to allow forwards to reference action
idenifiers. There's nothing wrong with referencing other actions, and it *is*
because URL's are fragile and sometimes complex. I don't know about you, but
when I have a project with alot of redirecting, it becomes a big pain to maintain. 

With that said, I would like to find a compromise here. Perhaps "action:" is not
an acceptable nomenclature to you, but what is? Is it another pattern or new
attributes? Perhaps we can think outside my proposed solution to come up with
one that we all like. Here's a new suggestion based on WebWork:

<action alias="viewJournal" path="/journal/view" ...>...</action>

<action alias="saveJournal" path="/journal/save" ...>
  <forward name="success" action-ref="viewJournal" />
</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