Struts1 与 Struts 2 配置区分

strtus1 (struts-config.xml)

 

<action-mappings>
<action name="LoginForm" path="/Login" scope="request"
			type="com.webap.auth.LoginAction" input="/Login.jsp">
			<forward name="Success" path="Index.do" redirect="true" />
			<forward name="Error" path="/Login.jsp" />
			<forward name="Force" path="/PasswordInitChange.do" />
		</action>
</action-mappings>

 

strtus2 (struts.xml)

<package name="XX" extends="struts-default">
<action name="logoutAction" class="com.LogoutAction" method="logout">
			<result name="success" type="redirectAction">loginInitAction</result>
		</action>
</package>

 

 

你可能感兴趣的:(struts1)