问题如题目,我现在只记得一种修改 LoginAction 的配置(只需修改 type 属性):
<action-mappings >
<actionattribute=”loginForm”
input=”/login.jsp”
name=”loginForm”
path=”/login”
scope=”request”
type=”org.springframework.web.struts.DelegatingActionProxy” />
</action-mappings><beans>
<bean name=”/login”
class=”com.login.struts.action.LoginAction”
singleton=”false”>
</bean>
</beans>听同学说 还有另外两种 求帮助 给出三种完整的版本
<action-mappings >
<actionattribute=”loginForm”
input=”/login.jsp”
name=”loginForm”
path=”/login”
scope=”request”
type=”org.springframework.web.struts.DelegatingActionProxy” />
</action-mappings><beans>
<bean name=”/login”
class=”com.login.struts.action.LoginAction”
singleton=”false”>
</bean>
</beans>听同学说 还有另外两种 求帮助 给出三种完整的版本
-----------struts-config.xml中需要添加的配置<controller
processorClass="org.springframework.web.struts.DelegatingRequestProcessor">
</controller> <message-resources
parameter="org.***" /> <plug-in
className="org.springframework.web.struts.ContextLoaderPlugIn">
<set-property property="contextConfigLocation"
value="/WEB-INF/classes/applicationContext.xml" />
</plug-in>
我只知道这一种了