码迷,mamicode.com
首页 > Web开发 > 详细

struts2 web.xml声明文件

时间:2015-12-10 19:47:47      阅读:152      评论:0      收藏:0      [点我收藏+]

标签:struts2 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 >index.jsp </welcome-file >

  </ welcome-file-list >

</ web-app>



struts2 web.xml声明文件

标签:struts2 web.xml

原文地址:http://icola.blog.51cto.com/5412204/1721682

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