使用myeclipse 6.0配置struts2 中的web。xml出错

来源:百度知道 编辑:UC知道 时间:2024/09/21 21:03:35
请看图

首先看看你的xml 名称空间是不是对的

<?xml version="1.0" encoding="UTF-8"?>
<web-app 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">

其次看看你的<filter>标签是否完整
<filter>
<filter-name>Struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.FilterDispatcher
</filter-class&g