<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
<data-sources />
<!-- formbean -->
<form-beans>
<form-bean name="empForm" type="hwt.form.EmpForm"/>
</form-beans>
<!-- 全局异常处理 -->
<global-exceptions>
<exception key="" type="" handler="" path="">
</exception>
</global-exceptions>
<global-forwards />
<!-- action -->
<action-mappings>
<action path="/login" parameter="login" name="empForm" input="/login.jsp" scope="request">
<forward name="success" path="/show.do?method=showAllEmps"/>
<forward name="failure" path="/login.jsp"/>
</action>
</action-mappings>
<!-- 控制器,整合spring -->
<controller>
<set-property property="processorClass" value="org.springframework.web.struts.DelegatingRequestProcessor"/>
</controller>
<!-- 资源文件 -->
<message-resources parameter="hwt.resources.ApplicationResources" />
<!-- 插件 -->
<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames"
value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
<set-property property="stopOnFirstError" value="false"/>
</plug-in>
</struts-config>