...
Webwork provides several implementations of the com.opensymphony.xwork.Result
interface to make web-based interactions with your actions simple. These result types include:
...
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
...
...
header
...
com.opensymphony.webwork.dispatcher.HttpHeaderResult
- Chain Result - used for Action Chaining
- Dispatcher Result - used for JSP integration
- FreeMarker Result - used for FreeMarker integration
- HttpHeader Result - used to control special HTTP behaviors
- JasperReports Result - used for JasperReports integration
- Redirect Result - used to redirect to another URL
- Redirect Action Result - used to redirect to another action
- Stream Result - used to stream an InputStream back to the browser (usually for file downloads)
- Velocity Result - used for Velocity integration
- XSL Result - used for XML/XSLT integration
...
...
stream
...
Results are specified in a xwork xml config file(xwork.xml) nested inside <action>. If the location
param is the only param being specified in the result tag, you can simplify it as follows:
...