Darn, "Ctrl+Enter" is no good....
So, one more try:
Musachy Barroso wrote:
what does <s:property value="top" /> prints in the action result?
I updated my sample
(http://www.informatik.fh-wiesbaden.de/~knauf/private/struts2/Struts2Action.war)
so that the JSP outputs this:
<s:action name="someaction" var="someActionVariable">
Inside s:action: Property "id": <s:property value="id"/> <br/>
Inside s:action: Property #someActionVariable.id: <s:property
value="#someActionVariable.id"/><br/>
Inside s:action: Property "top.id": <s:property value="top.id"/> <br/>
Inside s:action: Property "top": <s:property value="top"/> <br/>
</s:action>
Property "id": <s:property value="id"/> <br/>
Property #someActionVariable.id: <s:property
value="#someActionVariable.id"/><br/>
Property "top.id": <s:property value="top.id"/> <br/>
Property "top": <s:property value="top"/> <br/>
======================
Calling the JSP (http://localhost:8080/Struts2Action/index.jsp) results
in this HTML output:
Inside s:action: Property "id":
Inside s:action: Property #someActionVariable.id:
Inside s:action: Property "top.id":
Inside s:action: Property "top":
com.opensymphony.xwork2.defaulttextprovi...@1e6bfea
Property "id":
Property #someActionVariable.id: 10
Property "top.id":
Property "top": com.opensymphony.xwork2.defaulttextprovi...@1e6bfea
======================
First calling the Action
(http://localhost:8080/Struts2Action/someaction.action) results in this
HTML output:
Inside s:action: Property "id": 10
Inside s:action: Property #someActionVariable.id:
Inside s:action: Property "top.id": 10
Inside s:action: Property "top": de.knauf.actions.someact...@e2e59e
Property "id": 10
Property #someActionVariable.id: 10
Property "top.id": 10
Property "top": de.knauf.actions.someact...@e2e59e
===========================
What is this "com.opensymphony.xwork2.DefaultTextProvider" on top of the
value stack?
And it seems the <s:action> action is NEVER put on the actions value
stack?! Maybe this is the intended behaviour, but if yes the doc needs
an update ;-).
But I would expect to find an <s:action> action on top of the value
stack for the rest of the page.
Thanks
Wolfgang
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org