| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1414 人关注过本帖
标题:无法找到Servlet action
取消只看楼主 加入收藏
elemy21
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2007-4-28
收藏
 问题点数:0 回复次数:0 
无法找到Servlet action
struts-config.xml

<struts-config>
  <data-sources />
  <form-beans >
    <form-bean name="successForm" type="org.elemy.managerbook.struts.form.SuccessForm" />
    <form-bean name="loginForm" type="org.elemy.managerbook.struts.form.LoginForm" />

  </form-beans>

  <global-exceptions />
  <global-forwards />
  <action-mappings >
    <action
      attribute="successForm"
      input="/index.jsp"
      name="successForm"
      path="/success"
      scope="request">
      <forward name="success" path="/success.jsp"></forward>
      <forward name="error" path="/error.jsp"></forward>
     </action>
    <action
      attribute="loginForm"
      input="/index.jsp"
      name="loginForm"
      path="/login"
      scope="request">
      <forward name="login" path="/jsp/login.jsp"></forward>
      <forward name="error" path="/error.jsp"></forward>
     </action>

  </action-mappings>
  <controller processorClass="org.springframework.web.struts.DelegatingRequestProcessor"></controller>

  <message-resources parameter="org.elemy.managerbook.struts.ApplicationResources" />
  <plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
    <set-property property="contextConfigLocation" value="/WEB-INF/classes/applicationContext.xml" />
  </plug-in>
</struts-config>
当我把<plug-in className="org.springframework.web.struts.ContextLoaderPlugIn">
    <set-property property="contextConfigLocation" value="/WEB-INF/classes/applicationContext.xml" />
  </plug-in>
<controller processorClass="org.springframework.web.struts.DelegatingRequestProcessor"></controller>
去掉的话,就会正常执行,
大家帮帮忙
搜索更多相关主题的帖子: action Servlet xml 
2008-05-29 08:55
快速回复:无法找到Servlet action
数据加载中...
 
   



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

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