|
Struts example source code file (xwork-test-exception-mappings.xml)
The Struts xwork-test-exception-mappings.xml source code<!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.1.1//EN" "http://www.opensymphony.com/xwork/xwork-1.1.1.dtd" > <xwork> <include file="xwork-test-beans.xml" /> <package name="default"> <result-types> <result-type name="chain" class="com.opensymphony.xwork2.ActionChainResult" default="true"/> <result-type name="mock" class="com.opensymphony.xwork2.mock.MockResult"/> </result-types> <global-results> <!-- should be chain type since it is the default --> <result name="login">login </global-results> <global-exception-mappings> <exception-mapping exception="java.lang.RuntimeException" result="runForDeeHillz"/> <exception-mapping exception="com.opensymphony.xwork2.XworkException" result="xworkNaughty"/> </global-exception-mappings> <action name="Bar" class="com.opensymphony.xwork2.SimpleAction"> <exception-mapping exception="com.opensymphony.xwork2.SpookyException" result="spooky-result"/> <result name="spooky-result" type="mock"/> <result name="specificLocationResult"> <param name="actionName">bar.vm </result> </action> </package> </xwork> Other Struts examples (source code examples)Here is a short list of links related to this Struts xwork-test-exception-mappings.xml source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.