当前位置: 代码迷 >> Java Web开发 >> Servlet struts is not available要如何解决
  详细解决方案

Servlet struts is not available要如何解决

热度:4167   发布时间:2013-02-25 21:10:23.0
Servlet struts is not available要怎么解决
RT!
在配置SSH做项目时,提示Servlet struts is not available,请教各位!
在线等......急
struts-config.xml
XML code
<struts-config>    <action-mappings>        <action path="/control/product/type/list">            <forward name="list" path="/test.jsp"></forward>        </action>    </action-mappings>    <controller>        <set-property property="processorClass"            value="cn.itcast.web.action.privilege.PermissionProcessor" />    </controller></struts-config>

web.xml
XML code
<?xml version="1.0" encoding="UTF-8"?><web-app id="WebApp_ID" version="2.4"    xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">    <display-name>shop</display-name>    <context-param>        <param-name>contextConfigLocation</param-name>        <param-value>classpath:beans.xml</param-value>    </context-param>    <!-- 对Spring容器进行实例化 -->    <listener>        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>    </listener>    <servlet>        <servlet-name>struts</servlet-name>        <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>        <init-param>            <param-name>config</param-name>            <param-value>/WEB-INF/struts-config.xml</param-value>        </init-param>        <load-on-startup>0</load-on-startup>    </servlet>    <servlet-mapping>        <servlet-name>struts</servlet-name>        <url-pattern>*.do</url-pattern>    </servlet-mapping>    <welcome-file-list>        <welcome-file>index</welcome-file>        <welcome-file>index.jsp</welcome-file>    </welcome-file-list></web-app>

以上是相关的xml配置文件


------解决方案--------------------------------------------------------
jdk 的问题啊。。。。。。。。。。
  相关解决方案