`

ssi环境web.xml

阅读更多

Java develop SSI configration templete


< !-- ******************* ss intergrated configration ******************* -->

<!-- log4j configration-->

<context-param>
 <param-name>log4jConfigLocation</param-name>
 <!-- classpath: /WEB-INF/classes/ -->
 <!-- file: log4j.xml or log4j.properties -->
 <!-- eg: /WEB-INF/classes/log4j.properties -->
 <param-value>classpath:/log4j.properties</param-value>
< /context-param>

<listener>
 <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
< /listener>

<!-- spring applicationContext file path configration-->

<context-param>
 <param-name>contextConfigLocation</param-name>
 <!-- file: applicatonContext-*.xml or custom define -->
 <!-- eg: /WEB-INF/classes/applicatonContext-common.xml -->
 <param-value>classpath:/applicatonContext-common.xml</param-value>
< /context-param>

<listener>
 <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
< /listener>

<!-- struts2 configration-->

<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>


< !-- ******************* other common configration ******************* -->

<!-- character encoding filter -->

<filter>
 <filter-name>encodingFilter</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>
  <!-- enforce convert encoding -->
  <init-param>
   <param-name>forceEncoding</param-name>
   <param-value>true</param-value>
  </init-param>
< /filter>

<filter-mapping>
 <filter-name>encodingFilter</filter-name>
 <url-pattern>/*</url-pattern>
< /filter-mapping>

<session-config>
  <session-timeout>360</session-timeout>
< /session-config>

<welcome-file-list>
  <welcome-file>sys_login</welcome-file>
< /welcome-file-list>

<error-page>
  <error-code>400</error-code>
  <location>/error/400.html</location>
< /error-page>

<error-page>
  <error-code>404</error-code>
  <location>/error/404.html</location>
< /error-page>

<error-page>
  <error-code>403</error-code>
  <location>/error/403.html</location>
< /error-page>

<error-page>
  <error-code>500</error-code>
  <location>/error/500.html</location>
< /error-page>

<!-- ******************* optional and can ******************* -->

<!-- integrated apache tiles configration-->

<context-param> 
 <param-name>org.apache.tiles.CONTAINER_FACTORY</param-name> 
 <param-value>org.apache.struts2.tiles.StrutsTilesContainerFactory</param-value> 
< /context-param> 
< context-param> 
 <param-name>org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG</param-name>
 <!-- eg: /WEB-INF/tiles.xml -->
 <param-value>/WEB-INF/tiles.xml</param-value> 
< /context-param> 
< listener>
 <listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-class>
< /listener>

<!-- spring refresh introspector prevent memory leaks -->

<listener>
 <listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class>
< /listener>

分享到:
评论

相关推荐

    SSH和SSI等框架常用基础配置web.xml

    SSH和SSI等框架常用基础配置web.xml

    ssi整合时之web.xml

    ssi整合时之web.xml

    开发搭建工具

    powerdesigner125Crack.rar visio_pro_2003_chs_cdkey.txt 2010.1到2010.7的项目sichuanTelecommunication 的静态页面 Account.xml ApplicationAction.xml ApplicationContext_Root.xml ...web.xml

    web渗透系列教学下载共64份.zip

    web渗透--25--服务器端包含注入(SSI注入).pdf web渗透--26--XPath注入.pdf web渗透--27--命令注入.pdf web渗透--28--HTTP响应头拆分漏洞.pdf web渗透--29--LDAP注入.pdf web渗透--3--自动化漏洞扫描.pdf web渗透--...

    基于EXT SSI的简单树实现

    发挥连接作用的就是这个/WEB-INF/web.xml文件了。贴内容。 &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi=...

    超全的Web渗透自我学习资料合集(64篇).zip

    web渗透: 服务器端包含注入(SSI注入) web渗透: XPath注入 web渗透: 命令注入 web渗透: HTTP响应头拆分漏洞 web渗透: LDAP注入 web渗透: ORM注入 web渗透: Json劫持Json注入 web渗透: 宽字节注入 web渗透: 脆弱的...

    [完整][中文][WEB安全测试].(美)霍普.扫描版.pdf

    [WEB安全测试].(美)霍普.扫描版.pdf (美)霍普 等 著 傅鑫 等 译 出 版 社:清华大学出版社 ISBN:9787302219682 出版时间:2010-03-01 版 次:1 页 数:281 装 帧:平装 开 本:16开 所属分类:图书 &gt; ...

    ibaits2.3.4源代码

    不久也会发表SSI(Spring2.5+Struts2+Ibaits)整合配置的系列文章。?????? 该篇主要描述所需jar文件以及编写数据库连接部分。需要的jar文件有数据库连接相关jar文件如下:commons- dbcp.jarcommons-logging.jarcommons...

    web技术与网站规划共387页

    了解CGI、SSI、JSP、Web Service、.net技术 ,掌握 ASP 及ASP.NET Web编程的基本知识。 (六)日志文件:1学时 掌握Web服务器日志文件分析的基本方法。 (七)搜索引擎:1学时 了解建立搜索引擎、提高站点访问率的...

    Quick’n Easy Web Server Pro v3.3.5

    Quick’n Easy Web Server可以轻松设置个人web服务器了,将文件复制到任意目录,选择网页默认目录后网站就能运行了,可用于搭建个人 Web 服务器,或用于测试 ASP/CGI/PHP 网站程序,类似于大家使用的 IIS 和 ...

    DIHtmlParser v7.9.0 for D10.1 Berlin

    Server Side Includes (SSI): SSI, an extension of the Apache Web Server, starts with &lt;!–# and continues up to –&gt;. It allows to insert include files and other data into HTML documents on the fly. ...

    WEB安全测试

    1.2 什么是Web应用 17 1.3 Web应用基础 21 1.4 Web应用安全测试 25 1.5 方法才是重点 26 第2章 安装免费工具 29 2.1 安装Firefox 29 2.2 安装Firefox扩展 30 2.3 安装Firebug 31 2.4 安装OWASP的WebScarab 32 2.5 ...

    tomcat-7_API_帮助文档

    To override the XML parser implementation or interfaces, use the endorsed mechanism of the JVM. The default configuration defines JARs located in "endorsed" as endorsed. ============================...

    Ajax-proxrox.zip

    Ajax-proxrox.zip,代理服务、合并来源、在开发过程中使用ssi等,ajax代表异步javascript和xml。它是多种web技术的集合,包括html、css、json、xml和javascript。它用于创建动态网页,其中网页的小部分在不重新加载...

    ASP3《高级编程》(第一部分)

    7.2.3 ASP和SSI的运行期错误 221 7.2.4 客户端脚本错误 222 7.3 防止错误 224 7.4 处理错误 229 7.4.1 ASP缺省错误处理器 229 7.4.2 VBScript错误处理 230 7.4.3 JScript错误处理 232 7.4.4 使用IIS错误页面 ...

    ASP3《高级编程》(第二部分)

    7.2.3 ASP和SSI的运行期错误 221 7.2.4 客户端脚本错误 222 7.3 防止错误 224 7.4 处理错误 229 7.4.1 ASP缺省错误处理器 229 7.4.2 VBScript错误处理 230 7.4.3 JScript错误处理 232 7.4.4 使用IIS错误页面 ...

    Blumentals_WeBuilder_2020_v16.1.0.226.rar

    WeBuilder是一个快速、智能、强大的通用代码编辑器,适用于所有web开发人员。干净的界面、快速的启动、出色的多功能性和强大的功能使管理和创建HTML、CSS、JavaScript、PHP、Ruby、Python、ASP、SSI和Perl代码变得...

    WeBuilder可视化网页开发工具

    WeBuilder 是一个革命性的大全式web代码编辑器,适用于所有的web文件的编辑。界面简洁方便,启动迅速,功能灵活强大,可以快速的创建/编辑HTML, CSS, Javas cript, VBs cript, PHP, ASP, SSI 和 Perl 代码。内置集成...

Global site tag (gtag.js) - Google Analytics