最全三大框架整合(使用映射)——struts.xml和web.xml配置
来源:互联网 发布:ubuntu安装deb包失败 编辑:程序博客网 时间:2024/06/05 10:54
<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd"><struts><package name="default" namespace="/" extends="struts-default"><action name="add" class="deptAction" method="addDept"><result name="success">suc.jsp</result></action></package></struts>
web.xml:
<?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> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:applicationContext.xml, classpath:applicationContext-*.xml </param-value> </context-param> <filter> <filter-name>openSessionInViewFilter</filter-name> <filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class> <init-param> <param-name>flushMode</param-name> <param-value>AUTO</param-value> </init-param> </filter> <filter-mapping> <filter-name>openSessionInViewFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <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>
阅读全文
0 0
- 最全三大框架整合(使用映射)——struts.xml和web.xml配置
- 最全三大框架整合(使用映射)——applicationContext.xml里面的配置
- 最全三大框架整合(使用映射)——Emp.hbm.xml
- 最全三大框架整合(使用映射)——Dept.hbm.xml
- web.xml 和struts.xml配置
- J2EE框架——struts.xml配置
- ssh框架整合 web.xml配置
- web.xml整合框架
- Struts中web.xml和struts-config.xml配置详解
- ssh整合!Struts.xml、hibernate与spring整合的applicationContext.xml、web.xml文件的配置!
- Spring 整合Struts web.xml 配置<listener>(参照bjsxt)
- STRUTS框架(web.xml,struts.xml,XXXvalidation.xml配置信息)个人心得
- web.xml和struts-config.xml的配置
- web.xml和struts-config.xml的配置(ZT)
- web.xml和struts-config.xml配置方法
- web.xml和struts-config.xml的配置
- Struts1中web.xml和struts-config.xml的配置
- Struts2中的web.xml和struts.xml配置内容
- socket内置事件
- Android Studio在drawable文件夹创建xml的shape、selector等文件
- 关于Thinkphp3.2.3的路由使用
- TCP之为什么系列
- 单片机基础--IIC通信协议
- 最全三大框架整合(使用映射)——struts.xml和web.xml配置
- String和StringBuffer的区别
- 从汇编层面深度剖析 C++ 虚函数
- 数论知识总结(乘法逆元,欧拉函数,线性筛,快速幂,快速乘等)
- js随机生成一个验证码
- QtAV 1.5.0 发布,跨平台高性能音视频框架
- Android 7.0系统调用相机崩溃
- iOS bringSubviewToFront和exchangeSubviewAtIndex方法应用
- Struts2 登录