当前位置: 代码迷 >> Java Web开发 >> [求助]spring管理struts的action的问题
  详细解决方案

[求助]spring管理struts的action的问题

热度:194   发布时间:2006-10-19 10:30:23.0
[求助]spring管理struts的action的问题

文件太大,我只列出主要部分了,我不用spring管理action的时候,可以正常使用
struts-config.xml 里的配置

<action-mappings >
<action
attribute="loginForm"
input="/common/login.jsp"
name="loginForm"
parameter="method"
path="/login"
scope="request"
validate="true"
type="org.springframework.web.struts.DelegatingActionProxy">
<forward name="superAdminGo" path="/common/superAdmin.jsp" />
</action>

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

applicationContext.xml 的配置

<bean name="/login" class="com.test.struts.action.LoginAction" singleton="false">
<property name="userDAO">
<ref bean="userDAOProxy" />
</property>
</bean>


错误提示是:
message Servlet action is not available

description The requested resource (Servlet action is not available) is not available.


由于篇幅, 只列出了部分资料,如需要我就贴出, 各位高手分析一下错误在哪里好吗?
错误信息是Action找不到,怎么该?


[此贴子已经被作者于2006-10-19 11:19:35编辑过]

搜索更多相关主题的帖子: spring  action  struts  管理  

----------------解决方案--------------------------------------------------------
不鸟知道~~~N年都不看了,有时间再看吧
----------------解决方案--------------------------------------------------------
NND, 多骚点香火, 祈祷
----------------解决方案--------------------------------------------------------

难道tomcat里面没有什么错误信息吗?
你给的信息太少了
可以详细一点的哈


----------------解决方案--------------------------------------------------------

东西太多了, 不好给,要不我把工程发给你,

<property name="mappingResources">
<list>
<value>edu/pgms/model/SuperAdmin.hbm.xml< alue>
<value>edu/pgms/model/Admin.hbm.xml< alue>
<list>


一旦加了
<value>edu/pgms/model/SuperAdmin.hbm.xml
<value>edu/pgms/model/Admin.hbm.xml< alue>
的配置就找不到action, 去掉就能用。


----------------解决方案--------------------------------------------------------
错误是 action 不是一个变量

也就是applicationContext.xml加载错误,找不到action, 因为action我是配置在applicationContext.xml里了
----------------解决方案--------------------------------------------------------
  相关解决方案