日期:2014-05-17  浏览次数:20679 次

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.html</welcome-file>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
</web-app>

以上是相关的xml配置文件


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