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


[EMAIL PROTECTED] changed:

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




------- Additional Comments From [EMAIL PROTECTED]  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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to