| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 796 人关注过本帖
标题:[求助]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
快速回复:[求助]Servlet action is not available
数据加载中...
 
   



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

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