标题:无法找到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



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




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

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