result
From Documentation
Syntax:
<result [name="a-result"]>a-view's-uri</result>
It specifies a result of an action definition. It must be placed under the action element, and an action definition could have one or multiple results.
The result consists of the name and the URI of the targeted view. The name, if any, is specified as the name attribute, while the URI of the view is specified as the inner text of the result element. For example,
<result name="success">/WEB-INF/hello/HelloWorld.jsp</result>
<result>/WEB-INF/foo/Foo.jsp</result><!-- the default view -->
Attributes
name
[Optional][Default: null]
It specifies the name of the result. The view specified in a result is used, if the result's name matches the return value of the execute method.
If the name attribute is omitted, it is the default result. In other words, the URI of the view is used if no other result is matched.
Version History
Version | Date | Content |
---|---|---|