result in the type of several types
dispatch: The default type type, the equivalent of the way forward servlet jump page, and the page can not be the only action, the page can get value;
redirect: page redirection, client jump may be a page can also be action, a change in the address bar, the page can not get the value, due to take redirect redirect the way, the next page will fail to get on a request object inside value if the value passed to it, GET parameter passing methods can be used;
redirect-action: Client jump to another action, action can not get get value;
chain: forwards the request to an Action, Action by getAttribute ( "uname") to get the value, catena alberghiera is chained, several related action can be connected together to accomplish a function,
1
2
3
4
5
6
|
<action name=
"step1"
class
=
"test.step1action"
>
<result name=
"success"
type=
"chain"
>step2.action</result>
</action>
<action name=
"step2"
class
=
"test.step2action"
>
<result name=
"success"
>finish.js p</result>
</action>
|
freemarker: processing FreeMarker template.
HTTPHeader: control special HTTP behaviors result types.
Stream: send to the browser InputSream object, usually used to handle file downloads, AJAX can be used to return data.
Velocity: Velocity template processing.
XSLT: processing XML / XLST template.
plaintext: Source page is displayed
dispatch: The default type type, the equivalent of the way forward servlet jump page, and the page can not be the only action, the page can get value;
redirect: page redirection, client jump may be a page can also be action, a change in the address bar, the page can not get the value, due to take redirect redirect the way, the next page will fail to get on a request object inside value if the value passed to it, GET parameter passing methods can be used;
redirect-action: Client jump to another action, action can not get get value;
chain: forwards the request to an Action, Action by getAttribute ( "uname") to get the value, catena alberghiera is chained, several related action can be connected together to accomplish a function,
1
2
3
4
5
6
|
<action name=
"step1"
class
=
"test.step1action"
>
<result name=
"success"
type=
"chain"
>step2.action</result>
</action>
<action name=
"step2"
class
=
"test.step2action"
>
<result name=
"success"
>finish.js p</result>
</action>
|
freemarker: processing FreeMarker template.
HTTPHeader: control special HTTP behaviors result types.
Stream: send to the browser InputSream object, usually used to handle file downloads, AJAX can be used to return data.
Velocity: Velocity template processing.
XSLT: processing XML / XLST template.
plaintext: Source page is displayed