struts1老古董配置

<!--Struts1 struts-config.xml Demo -->
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
<form-beans>
<!-- added by xt-->
<form-bean name="userForm"
type="cn.com.sony.newsis.support.userRole.form.UserForm" />
</form-beans>
<global-forwards>
<forward name="roleFalse" path="/common/roleFalse.jsp" />
</global-forwards>
<action-mappings>
<action name="userForm" path="/userAction" scope="request"
type="org.springframework.web.struts.DelegatingActionProxy">
<!--整合spring用来注入bo的,也可以 type="cn.com.sony.newsis.support.userRole.action.UserAction" -->
<forward name="userList" path="/newsis/support/userList.jsp" />
<forward name="printServiceCertificate" redirect="false" path="/contractServiceJobAction.do?method=serviceCertificatePrint" />
</action>
</action-mappings>
<!--国际化-->
<message-resources parameter="ApplicationResources" null="false"></message-resources>
<plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
<set-property property="contextConfigLocation" value="/WEB-INF/config/actionBeans.xml" />
</plug-in>
</struts-config>
<!--actionBeans.xml -->
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans default-lazy-init="true">
<bean name="/userAction" class="cn.com.sony.newsis.support.userRole.action.UserAction">
<property name="userBo" ref="userBo" />
<property name="departmentBo" ref="departmentBo" />
<property name="roleBo" ref="roleBo" />
</bean>
</beans>

 

你可能感兴趣的:(struts1)