...
As you can see that result configuration is made up of two parts: result mappings, which you've already seen associated with an action mapping and result types.
Configuring result types
Every package in WebWork can be associated with one or more result types.
Code Block |
---|
<xwork>
<include name="webwork-default.xml"/>
<package name="default" extends="webwork-default">
<result-types>
<result-type name="dispatcher" class="..." default="true"/>
<result-type name="redirect" class="..."/>
</result-types>
<default-interceptor-ref name="defaultStack"/>
<action name="login"
class="org.hibernate.auction.web.actions.users.Login">
<result name="input">login.jsp</result>
<result name="success"
type="redirect">/secure/dashboard.action</result>
</action>
</package>
</xwork>
|