<action
attribute="loginForm"
input="/login.jsp"
name="loginForm"
path="/login"
scope="request"
type="org.springframework.web.struts.DelegatingActionProxy" />
另外,在<message-resources parameter="prj23_1.ApplicationResources" />下面做spring的插件修改
<plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
<set-property property = "contextConfigLocation" value="/WEB-INF/applicationContext.xml"/>
</plug-in>
Struts2与Spring整合配置

本文介绍如何在Struts2框架中集成Spring框架,通过配置实现Struts2与Spring的无缝对接。具体包括设置登录表单、指定资源文件路径及加载Spring上下文等关键步骤。
148

被折叠的 条评论
为什么被折叠?



