struts+spring+hibernate的错误!高手请进

来源:百度知道 编辑:UC知道 时间:2024/06/21 14:49:23
跳转MyExamIII/studentLoginAction.do时出现以下异常:
HTTP Status 404 - Servlet action is not available

type Status report
message Servlet action is not available
description The requested resource (Servlet action is not available) is not available.

tomcat报出的异常如下:
org.apache.catalina.core.StandardWrapperValve invoke
信息: Servlet action is currently unavailable

以下是配置文件:
web.xml:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext*.xml </param-value>
</context-param>
<servlet>
<servlet-name>context</servlet-name>
<servlet-class>org.springframework.web.context.ContextLoaderServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet>
<servlet-name>action</servlet-name>
<servlet

<action
attribute="studentLoginForm"
name="studentLoginForm"
path="/studentLoginAction"

scope="session"
>
scope="sessin"换成scope="request"或者去掉(默认表示session),然后重启服务试试
___________________________________________
这种错误一般是配置文件错误,web.xml:
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext*.xml </param-value> 这里多了个*是applicationContext.xml吧
帅哥3个配置文件不是这样配置的
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/applicationContext.xml
/WEB-INF/applicationContext-dao.xml
/WEB-INF/applicationContext-manager.xml

</param-value>
</context-param>
像我这样

应该是有两个错误,一、<forward name="success" path=""></forward> ,应该path那里给它指