Friday, March 23, 2012
How the data moves through the struts2 framework
Two most important places this occurs are on the incoming form and the outgoing
result page. In the case of the incoming request, the form field name attribute is interpreted as an OGNL expression. The expression is used to target a property on the ValueStack.In this case, the name property from our action. The value from the form field is automatically moved onto that property by the framework. On the other end,the result JSP pulls data off the name property by likewise using an OGNL expression, inside a tag, to reference a property on the ValueStack.
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment