tomcat运行配置struts2的web项目Console报错“Dispatcher initialization failed” 250
使用的IDE是eclipse的EclipseJeeNeon版本项目配置信息:web.xml的配置:<?xmlversion="1.0"encoding="UTF-8"?>...
使用的IDE是eclipse的Eclipse Jee Neon版本项目配置信息:web.xml的配置: <?xml version="1.0" encoding="UTF-8"?><web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"> <display-name>Struts2Test</display-name> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> <filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class> </filter> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping></web-app>struts.xml的配置:<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN" "http://struts.apache.org/dtds/struts-2.3.dtd"><!-- START SNIPPET: xworkSample --><struts> <package name="default" namespace="/" extends="struts-default"> <action name="helloworld" class="com.dunn.action.HelloWorldAction"> <result name="SUCCESS">/result.jsp</result> </action> </package></struts>
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询