Hi Musachy,

what you say makes sense, but then I think one thing is missing in the doc for s:action (http://struts.apache.org/2.1.6/docs/action.html):

I suggest something like this:
"The action is never placed on the value stack like an action called by URL, so that accessing fields of it with a syntax "<s:property value="actionfield"/> is NOT possible. Declare a variable instead".

This would avoid my misunderstanding.

Thanks

Wolfgang


Musachy Barroso wrote:
Didn't my previous email answer your questions?

"Ok, let me try to clarify this, if the result of some action, lets
call it "firstAction" contains:

<s:action var="secondAction" ...>
  <!-- tag content -->
<s:/action>

while the result of "secondAction" is executed, "secondAction" will be
on top of the stack, and it is not available by name in the stack.
Inside the tag content, "firstAction" is on top of the stack. Outside
the action tag, "firstAction" is on top of the stack, and
"secondAction" can be referenced by name.

"
That says what is on the stack at every moment.

musachy



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to