标题:[求助]Servlet action is not available
只看楼主
iExploiter
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2006-5-17
 问题点数:0 回复次数:0 
[求助]Servlet action is not available
在没有加入spring的时候,我的例程是可以正确执行的,但是加入了spring之后,就不能执行了,为什么?
配置如下:

struts-config.xml
<?xml version="1.0" encoding="UTF-8"?>
<!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>
<data-sources />
<form-beans >
<form-bean name="LoginForm" type="com.dev.zhang.struts.forms.LoginForm" />

</form-beans>

<global-exceptions />
<global-forwards />
<action-mappings >
<action
attribute="LoginForm"
input="/login.jsp"
name="LoginForm"
path="/login"
scope="request"
type="org.springframework.web.struts.DelegatingActionProxy" >
<forward name="test" path = "/index.jsp"/>
</action>

</action-mappings>
<!-- org.springframework.web.struts.DelegatingActionProxy -->
<message-resources parameter="com.dev.zhang.struts.ApplicationResources" />
<plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
<set-property property="contextConfigLocation" value="/WEB-INF/applicationContext.xml" />
</plug-in>

</struts-config>


applicationContext.xml如下所示


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">

<beans>
<bean name="/login"
class="com.dev.zhang.struts.action.LoninAction"
singleton="false"></bean>
</beans>



每次执行action="/login.do"的时候,就提示
Servlet action is not available


怎么办啊?大虾
搜索更多相关主题的帖子: action Servlet available not 
2006-05-17 15:44



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-64986-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.023918 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved