Ted,
I am not sure the name is going to matter at all in 1.x because the
naming conventions are so different. What is "name" on an S2 action
mapping is awkwardly the bean name in S1. So while shooting for the same
conceptual names is a good thing, S1 already blew it :-)
I am not sure I understand the whole of your email. So let me emphasize
one point and then perhaps you can tell me if it is what you're saying:
I am trying to provide transparency. Whether the destination of a
forward is a URI (starts with a slash) or a logical name, any code
written in Struts 1.x will NOT have to change. That was my goal and I
think I achieved it because all I did was alter the action mappings and
JSP, and it ran like it did before.
Paul
Ted Husted wrote:
In Struts 2, the action mapping names attributes still hash to URIs,
so we still have the same problem. Though, I can understand why
someone would want to give action mappings logical names that are not
part of the "business logic".
Right now, the term "alias" is used in Struts 2 to indicate a
"dispatch" method -- an alternative "execute" method. Using the same
term to mean something else in the Struts 1 vernacular might be
confusing.
Following Struts 2 conventions, we might want to call the logical name
"action-ref". I'd suggest that the action-ref default to the path,
unless specified in the mapping, so that every action mapping is
guaranteed to have an action-ref.
I'm thinking of proposing class aliases for XWork 2, where we could
give an internal logical name to FQNs. Then in the class (or type)
element, we could refer to the alias rather than the full package and
class name. Since the term "alias" was taken, my thought was to call
these element "class-ref".
If we apply the patch, we could add the set-properties capability to
Struts 1.3, and then schedule a DTD change for Struts 1.4.
Historically, we have not made DTD changes as part of a milestone
(#.#.x) release.
-Ted.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]