近来做了一个小项目,用到了Struts1.x,Spring 2.5和Hibernate3,其中的一些配置文件较为典型,所以拿到这里来和大家分享。
-
<?xmlversion="1.0"encoding="UTF-8"?>
-
<web-appversion="2.5"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/javaeehttp://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
-
-
-
<servlet>
-
<servlet-name>action</servlet-name>
-
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
-
<init-param>
-
<param-name>config</param-name>
-
<param-value>/WEB-INF/struts-config.xml</param-value>
-
</init-param>
-
<load-on-startup>0</load-on-startup>
-
</servlet>
-
<servlet-mapping>
-
<servlet-name>action</servlet-name>
-
<url-pattern>*.do</url-pattern>
-
</servlet-mapping>
-
-
-
<context-param>
-
<param-name>contextConfigLocation</param-name>
-
<param-value>/WEB-INF/applicationContext.xml</param-value>
-
</context-param>
-
<listener>
-
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
-
</listener>
-
-
<filter>
-
<filter-name>characterFilter</filter-name>
-
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
-
<init-param>
-
<param-name>encoding</param-name>
-
<param-value>UTF-8</param-value>
-
</init-param>
-
</filter>
-
<filter-mapping>
-
<filter-name>characterFilter</filter-name>
-
<url-pattern>/*</url-pattern>
-
</filter-mapping>
-
<filter>
-
<filter-name>hibernateFilter</filter-name>
-
<filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class>
-
</filter>
-
<filter-mapping>
-
<filter-name>hibernateFilter</filter-name>
-
<url-pattern>/*</url-pattern>
-
</filter-mapping>
-
-
-
<session-config>
-
<session-timeout>
- 30
-
</session-timeout>
-
</session-config>
-
<welcome-file-list>
-
<welcome-file>index.jsp</welcome-file>
-
</welcome-file-list>
-
</web-app>
分享到:
相关推荐
struts.xml和applicationContext.xml、web.xml的配置
ssh的web.xml的配置,很实用的哦!
SSH和SSI等框架常用基础配置web.xml
- dataAccessContext-local/jta.xml (see web.xml's "contextConfigLocation"). --> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
SSH框架配置文件及web.xml jar包
使用myeclipse8.5搭建SSH后,将struts.xml和applicationContext.xml移动到别的地方,示例中为webroot下的config文件夹中,web.xml中需要做的修改示例。其中对于返回上一层方式不同的myeclipse可能不同,如有的用../...
做ssh架构的时候必要的启动文件,这里设置的非常关键, 一般默认启动的,监听的,页面字符穿,等等都是在这里设置 如果想做ssh的架构可不知道struts-config.xml的, 请到我的资源的struts里面,有详细的例子...
建立Web工程 * 导入需要的jar包 db:连接数据库的驱动包 hibernate:使用hibernate的jar包 jstl:java的标准标签库 junit:测试用到的jar包 spring:使用spring的jar包 ... struts.xml:struts2的配置文件
该校园宿舍管理系统采用SSH+jsp+web技术框架而成,具体功能包括: 1.楼层管理员管理 2.学生管理 3.楼层管理 4.宿舍管理 5.学生入住登记 6.学生寝室调换 7.学生迁出登记 8.学生缺勤记录 9.修改密码 10.退出...
网上书店系统是一个基于SSH框架开发的经典例子,通过设计实现网上书店网站,综合应用JaveEE应用开发中Struts2,Spring,Hibernate框架等技术,结合关系数据库管理,熟悉并学会灵活三大框架,以提高对WEB相关B/S应用...
ssh整合所需的jar包,spring-4.2.4版本,c3p0连接池,mysql数据库,hibernate-5.0.7版本,struts-2.3.24版本, spring-mvc.xml文件,web.xml文件,spring-common.xml文件,Adc.hbm.xml文件
..............................................................................10 1.3.9MyEclipse 配置XML 提示:..............................................................................................
ssh中struts2.xml,spring.xml和web.xml,各配置说明
jar包 包括: struts2 - spring3 - hibernate3 - mysql5.x 3个配置文件: web.xml struts.xml application.xml文件基本配合
org.springframework.web-x.x.x.RELEASE.jar:在web.xml中配置启动Spring容器所需,包括上下文和监听器。 Struts2相关的jar包: Struts2的核心库,如struts2-core-x.x.x.jar。 以及其他与Struts2相关的库,例如用于...
配置SSH的步骤: 1 添加依赖库 2 启用Struts2,在Web.xml中配置它的fitler 3 添加Struts2的配置文件,在其中配置Action与请求路径的对应关系。 4 启用Spring,在web.xml中配置它的Lisener
Struts+srping+Hibernate开发青协志愿服务管理系统 数据库 mysql(关系型数据库) 前台技术 JSP(css,js,ajax,el,java) 项目技术 Struts+srping+Hibernate ...web.xml 项目配置文件 项目一些基本配置参数 127.0
ssh 整合所有配置文件的配置 各个标签如何填写 Struts2.xml配置文档 <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts PUBLIC "-//Apache Software ... <result></result> ...struts2在web.xml里的配置
Struts+srping+Hibernate开发青协志愿服务管理系统 数据库 mysql(关系型数据库) 前台技术 JSP(css,js,ajax,el,java) 项目技术 Struts+srping+Hibernate ...web.xml 项目配置文件 项目一些基本配置参数
程序配置 --> web.xml 验证框架--> bean-validation.xml (实体验证)、SaveAction-validation.xml (保存验证)、UpdateAction-validation.xml (修改验证) 日志管理配置 --> log4j.xml 国际化配置-->globalMessages_...