struts-2.5.14.1 中web.xml的基本配置
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns="http://xmlns.jcp.org/xml/ns/javaee"xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"id="WebApp_ID" version="3.1"><display-name>ErrorPage</display-name><welcome-file-list><welcome-file>index.html</welcome-file><welcome-file>index.htm</welcome-file><welcome-file>index.jsp</welcome-file><welcome-file>default.html</welcome-file><welcome-file>default.htm</welcome-file><welcome-file>default.jsp</welcome-file></welcome-file-list><filter><filter-name>struts2</filter-name><filter-class>org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter</filter-class></filter><filter-mapping><filter-name>struts2</filter-name><url-pattern>/*</url-pattern></filter-mapping><error-page><error-code>404</error-code><location>/error.jsp</location></error-page> </web-app>
转载于:https://www.cnblogs.com/mibing/p/8192489.html
struts-2.5.14.1 中web.xml的基本配置相关推荐
- Spring web项目中web.xml常用的配置
设置请求和响应时的编码为UTF-8 <filter><filter-name>encodingFilter</filter-name><filter-clas ...
- Tomcat中web.xml文件的详细说明
Tomcat中web.xml文件的详细说明 <?xml version="1.0" encoding="GB2312"?> <!-- We ...
- Servlet容器中web.xml配置context-param与init-param
Servlet容器中web.xml配置<context-param>与<init-param>的区别与作用 <context-param>的作用: web.xml的 ...
- web.xml常用元素配置
web.xml常用元素配置 tomcat服务器: tomcat是一个WEB服务器,所有的j2ee WEB程序可以在此处运行. tomcat服务器是一个符合j2ee标准的WEB服务器.则J2ee的EJB ...
- spring中基于XML的AOP配置步骤
spring中基于XML的AOP配置步骤 IAccountService.java package com.itheima.service;/*** 账户的业务层接口*/ public interfa ...
- servlet中web.xml配置详解
Web.xml常用元素 <web-app> <display-name></display-name> 定义了WEB应用的名字 <description ...
- java 定义xml_java中web.xml定义详解
1 定义头和根元素 部署描述符文件就像所有XML文件一样,必须以一个XML头开始.这个头声明可以使用的XML版本并给出文件的字符编码. DOCYTPE声明必须立即出现在此头之后.这个声明告诉服务器适用 ...
- idea java xml文件内容_idea 中web.xml 文件的标签疯狂报错
element XXX is not allowed here的错误.网上很多说重启idea或者Tomcat的jar包配置的,真是希望自己试一下再转帖啊,几篇错误的能抄的到处都是,害人害己啊. 1.注 ...
- sevlet中web.xml 文件
每个 web 项目下都具备 web.xml 文件.通过前面的学习,我们对 web.xml 文件有了一定了解,但是还不够,本节课就 web.xml 文件进 行总结.同时对 Tomcat 下的 serve ...
最新文章
- python扫描端口脚本_Python实现的端口扫描功能示例
- 如何并行运行多个npm脚本?
- java char 指针数组_双指针之对撞指针,Java
- 80客团队博客建设的思路
- video php上下切换,TP3.2实现上下篇切换
- Python 空字符串转化问题:ValueError: invalid literal for int() with base 10: ' ',原因及解决方法。
- 【IOS】集成zxing(二维码扫描)
- 如何集成Python代码和GUI来创建一个简单的游戏?
- ktv歌手歌曲后台功能 1216
- 一加7喜迎全局DC调光:长时间看屏不再“辣眼”
- 《Kotlin项目实战开发》第1章 Kotlin是什么 1
- 【生活相关】二(2014年新年畅想)
- java 的strip_javastript
- 跟CSDN客服反馈的交流
- 前端正则表达式汇总整理
- 基于Spark的公安大数据实时运维技术实践
- 如何成为一名获得Adobe认证的专业人员?
- C盘清理笔记 msp文件和msi文件
- iTween 用法总结
- 问卷星禁止粘贴解决方案
热门文章
- C++11: chrono
- Spring – ${} is not working in @Value--转载
- ASCX呼叫ASPX.CS的方法
- 传真故障排除示例--编码不一致导致传真失败
- 程序物语(六):探寻你的与众不同之处
- webstorm快捷键生成html页面,webstorm工具使用的快捷键
- linux 查看ftp账户,linux的ftp服务之本地访问浏览与虚拟账户
- javascript 数组对象中的迭代方法
- 教你网站怎么添加返回顶部代码?
- Python 技术篇-含中文编码的代码运行方法,(unicode error) ‘utf-8‘ codec can‘t decode问题原因及解决方法