码迷,mamicode.com
首页 > 其他好文 > 详细

Struts2 的各种xml 和struts 配置信息 都是一样的

时间:2016-03-17 14:32:50      阅读:123      评论:0      收藏:0      [点我收藏+]

标签:

先来2中xml  都可以 哪个都可以

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>index.jsp</welcome-file>

</welcome-file-list>


以下还有一种 俩种都行以下是2.0的
</welcome-file-list>
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.FilterDispatcher
</filter-class>
</filter>

<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<welcome-file-list>
<welcome-file>/WEB-INF/jsp/login.jsp</welcome-file>
</welcome-file-list>

</web-app>

 

 

再来 struts2 的 配置信息 下次 自己 搞 这是标配

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

 

Struts2 的各种xml 和struts 配置信息 都是一样的

标签:

原文地址:http://www.cnblogs.com/w888/p/5287126.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!