web.xml ben.xml struts.xml hibernate.xml 配置位置
来源:互联网 发布:大数据及其应用 编辑:程序博客网 时间:2024/05/19 13:57
ssh的配置文件全部放在src目录下。
web.xml 放在WEB-INFO下。
web.xml配置。可以在struts的例子里拷贝一个改。
<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.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="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/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<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>
- web.xml ben.xml struts.xml hibernate.xml 配置位置
- web.xml配置及struts.xml配置
- struts-config.xml , web.xml配置示例
- web.xml 和struts.xml配置
- struts2 配置web.xml struts.xml
- web.xml与struts.xml配置
- struts.xml与Web.xml的配置
- SSH整合配置applicationContext.xml/hibernate.cfg.xml/struts.xml
- ssh整合!Struts.xml、hibernate与spring整合的applicationContext.xml、web.xml文件的配置!
- struts-config,web.xml配置
- 【struts】web.xml的配置
- 转 struts web.xml配置
- struts web.xml简单配置
- web.xml之配置Struts
- Struts工程web.xml配置
- struts-config.xml-context.xml-web.xml
- Struts中web.xml和struts-config.xml配置详解
- spring struts hibernate web.xml配置文件模板
- 移动UI设计中的7种主要导航模式
- ACM 编程 总结
- VMware中为Ubuntu安装配置nfs服务
- 服务器监控工具的使用方法
- Windows 2008 R2设置Vmware在开机登录之前自启动
- web.xml ben.xml struts.xml hibernate.xml 配置位置
- Android Developers: 创建一个Android项目
- Selenium2.0之WebDriver学习总结(1)
- PKCS11 图解
- Linux 策略路由
- Head First Jquery学习笔记(一)
- C和C++相互调用
- CString转int _ttoi() _tcstoul() Format ASSERT() Format的用法
- Willlam Shakespeare——10、Back to Stratford