Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Result Type

name

class

#Dispatcher

dispatcher

com.opensymphony.webwork.dispatcher.ServletDispatcherResult

#Redirect

redirect

com.opensymphony.webwork.dispatcher.ServletRedirectResult

#Action Chaining

chain

com.opensymphony.xwork.ActionChainResult

#Velocity

velocity

com.opensymphony.webwork.dispatcher.VelocityResult

#FreeMarker

freemarker

com.opensymphony.webwork.views.freemarker.FreemarkerResult

#JasperReports

jasper

com.opensymphony.webwork.views.jasperreports.JasperReportsResult

#XML/XSL

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
Dispatcher
Dispatcher

...