在struts中使用org.apache.struts2.dispatcher.FilterDispatcher先要配置什么?

来源:百度知道 编辑:UC知道 时间:2024/05/13 19:41:39
我使用了org.apache.struts2.dispatcher.FilterDispatcher后 就使用失败了

这里struts2使用的是Filter充当Control 需要配置web.xml:

<?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>
struts2Test</display-name>
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-cla