`
dengchangqing
  • 浏览: 52625 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

struts+spring

阅读更多
<?xml version="1.0" encoding="gb2312"?>

<!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>
	<form-beans>
		<form-bean name="loginForm" type="lee.LoginForm"/>
	</form-beans>


	<action-mappings>
		<action path="/login" type="org.springframework.web.struts.DelegatingActionProxy" name="loginForm"
			scope="request" validate="true" input="/login.jsp" >
			<forward name="input" path="/login.jsp"/>
			<forward name="welcome" path="/welcome.html"/>
		</action>
	</action-mappings>


	<message-resources parameter="mess"/>


	<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="true"/>
	</plug-in>

    <plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
        <set-property property="contextConfigLocation" 
            value="/WEB-INF/applicationContext.xml,
                   /WEB-INF/action-servlet.xml"/>
    </plug-in>

</struts-config>
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics