为了账号安全,请及时绑定邮箱和手机立即绑定

运行Struts 项目,启动tomcat时,抛出两个错误

574bfb7d00014b8a05000090.jpg

574bfb7e0001b1f905000082.jpg

Struts.xml

<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" 

"http://struts.apache.org/dtds/struts-2.1.dtd">

<struts>

 <package name="default" namespace="/" extends="struts-default">

    <action name="helloworld" class="com.action.Action">

       <result>/result.jsp</result>

    </action>

 </package>

</struts>


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>Struts2</display-name>

  <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>

  <welcome-file-list>

    <welcome-file>result.jsp</welcome-file>

  </welcome-file-list>  

</web-app>

http://img1.sycdn.imooc.com//574bfc710001064302320329.jpg

正在回答

举报

0/150
提交
取消

运行Struts 项目,启动tomcat时,抛出两个错误

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信