我想**404他mother
才安装struts2
做了个测试web
做了个简单的action
但是无论怎么都是404“找不到文件”
<welcome-file-list>设置的都是404
奉上两个xml
<?xml version="1.0" encoding="ISO-8859-1"?><!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"><web-app> <display-name>Struts 2 Mailreader</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>*.do</url-pattern> </filter-mapping></web-app>
<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> <struts> <package name="HelloWorld" namespace="/HellloWorld" extends="struts-default"> <action name="HelloWorld" class="helloworld.HelloWorld"> <result>/HelloWorld.jsp</result> </action> </package> </struts>