基于SSH框架的Web应用中,web.xml的配置
2013-07-09 17:47
253 查看
<?xml version="1.0" encoding="UTF-8"?> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"> <display-name></display-name> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> <!-- Spring configuration For Servlet 2.4+ web container --> <listener> <listener-class> org.springframework.web.context.request.RequestContextListener </listener-class> </listener> <!-- Spring configuration For Servlet 2.3 --> <!-- <filter> <filter-name>requestContextFilter</filter-name> <filter-class>org.springframework.web.filter.RequestContextFilter</filter-class> </filter> <filter-mapping> <filter-name>requestContextFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> --> <!-- Struts2 configuration --> <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> </web-app>
不断更新中……
相关文章推荐
- Spring Web MVC简介 、基于XML配置的MVC应用 、基于注解配置的MVC应用
- Unit03: Spring Web MVC简介 、 基于XML配置的MVC应用 、 基于注解配置的MVC应用
- SPRINGMYBATIS01 Unit03: Spring Web MVC简介 、 基于XML配置的MVC应用 、 基于注解配置的MVC应用
- SpringMVC基于代码的配置方式(零配置,无web.xml)
- 基于XML配置的Spring MVC 简单的HelloWorld实例应用
- 基于Struts、Spring、Hibernate的JavaWeb开发SSH框架配置
- 整合ssh框架的web.xml中的配置节
- Spring--IoC--基于XML的DI-为应用指定多个配置文件-包含关系
- 关于Java Web应用中的配置描述符web.xml
- Spring基于注解的缓存配置--web应用实例
- SSH框架整合中:spring在web.xml中的配置
- Spring MVC应用web.xml两种配置
- JAVA WEB开发之基于xml配置文件的分页实现(一) 分页配置原理
- javaweb学习总结十七(web应用组织结构、web.xml作用以及配置虚拟主机搭建网站)
- 在ssh框架下web.xml配置404和500错误代码,自定义不生效的解决办法。
- Linux配置手册(十)基于LAMP构建(httpd_mysql_php)web应用(Discuz论坛)
- SSH框架整合的时候 在web.xml中需配置的spring信息与struts2的配置信息
- Servlet教程____一个简单的Servlet(基于web.xml配置servelt)
- Spring基于注解的缓存配置--web应用实例
- jboss下通过配置log4j.xml实现web应用的日志 (zt)