...
Result Type | name | class |
---|---|---|
dispatcher | com.opensymphony.webwork.dispatcher.ServletDispatcherResult | |
redirect | com.opensymphony.webwork.dispatcher.ServletRedirectResult | |
chain | com.opensymphony.xwork.ActionChainResult | |
velocity | com.opensymphony.webwork.dispatcher.VelocityResult | |
freemarker | com.opensymphony.webwork.views.freemarker.FreemarkerResult | |
jasper | com.opensymphony.webwork.views.jasperreports.JasperReportsResult | |
xslt | com.opensymphony.webwork.views.xslt.XSLTResult |
Results are specified in a xwork xml config file(xwork.xml) nested inside actions<action>. The location
param is the default parameter, meaning you can specify the location two ways:
...
Code Block |
---|
<action name="bar" class="myPackage.barAction"> <result name="success" type="dispatcher">foo.jsp</result> </action> |
NOTE: You can also specify global-results to use with multiple actions. This can save time from having to add the same result to many different actions. See global-results
Dispatcher
Anchor | ||||
---|---|---|---|---|
|
...