struts.xml配置
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.3//EN"
"http://struts.apache.org/dtds/struts-2.3.dtd">
<struts>
<constant name="struts.ui.theme" value="simple"/>
<constant name="struts.devMode" value="true" />
<constant name="struts.i18n.encoding" value="UTF-8" />
<package name="default" namespace="/" extends="struts-default">
<!-- 全局结果视图 -->
<global-results>
<result name="error">/WEB-INF/pages/error.jsp</result>
</global-results>
<!-- struts2异常处理框架 -->
<global-exception-mappings>
<exception-mapping result="error" exception="cn.itcast.jk.exception.SysException">&