- 浏览: 1525384 次
- 性别:
- 来自: 杭州
文章分类
- 全部博客 (525)
- SEO (16)
- JAVA-EE-Hibernate (6)
- JAVA-EE-Struts (29)
- JAVA-EE-Spring (15)
- Linux (37)
- JAVA-SE (29)
- NetWork (1)
- CMS (14)
- Semantic Research (3)
- RIA-Flex (0)
- Ajax-Extjs (4)
- Ajax-Jquery (1)
- www.godaddy.com (0)
- SSH (34)
- JavaScript (6)
- SoftwareEngineer (9)
- CMMI (0)
- IDE-Myeclipse (3)
- PHP (1)
- Algorithm (3)
- C/C++ (18)
- Concept&Items (2)
- Useful WebSite (1)
- ApacheServer (2)
- CodeReading (1)
- Socket (2)
- UML (10)
- PowerDesigner (1)
- Repository (19)
- MySQL (3)
- SqlServer (0)
- Society (1)
- Tomcat (7)
- WebService (5)
- JBoss (1)
- FCKeditor (1)
- PS/DW/CD/FW (0)
- DesignPattern (11)
- WebSite_Security (1)
- WordPress (5)
- WebConstruction (3)
- XML|XSD (7)
- Android (0)
- Project-In-Action (9)
- DatabaseDesign (3)
- taglib (7)
- DIV+CSS (10)
- Silverlight (52)
- JSON (7)
- VC++ (8)
- C# (8)
- LINQ (1)
- WCF&SOA (5)
- .NET (20)
- SOA (1)
- Mashup (2)
- RegEx (6)
- Psychology (5)
- Stock (1)
- Google (2)
- Interview (4)
- HTML5 (1)
- Marketing (4)
- Vaadin (2)
- Agile (2)
- Apache-common (6)
- ANTLR (0)
- REST (1)
- HtmlAnalysis (18)
- csv-export (3)
- Nucth (3)
- Xpath (1)
- Velocity (6)
- ASP.NET (9)
- Product (2)
- CSS (1)
最新评论
-
lt26w:
理解成门面模式应该比较容易明白吧
FacadePattern-Java代码实例讲解 -
lt26w:
看下面的例子比较明白.
FacadePattern-Java代码实例讲解 -
javaloverkehui:
这也叫文档,别逗我行吗,也就自己看看。
HtmlCleaner API -
SE_XiaoFeng:
至少也应该写个注释吧。
HtmlCleaner API -
jfzshandong:
...
org.springframework.web.filter.CharacterEncodingFilter 配置
<?xml version="1.0"
encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
web-app_2_4.xsd"
version="2.4">
<!--
- Contacts web
application
-
- web.xml for "filter" artifact
only.
-
- $Id: web.xml,v 1.18
2007/04/16 04:44:41 jianfeng.zhang Exp $
-->
<display-name>51point Application</display-name>
<!--
- Location of the XML file that
defines the root application context
- Applied by
ContextLoaderListener.
-->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/classes/webApplicationContext.xml
/WEB-INF/classes/hibernateContext.xml
/WEB-INF/classes/commonApplicationContext.xml
/WEB-INF/classes/permissionApplicationContext.xml
/WEB-INF/classes/applicationContext_zjf.xml
/WEB-INF/classes/applicationContext_hh.xml
/WEB-INF/classes/applicationContext_hcc.xml
/WEB-INF/classes/applicationContext_wdj.xml
/WEB-INF/classes/applicationContext_cyk.xml
/WEB-INF/classes/applicationContext_jjq.xml
/WEB-INF/classes/schedulerContext.xml
</param-value>
</context-param>
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>point.root</param-value>
</context-param>
<context-param>
<param-name>log4jConfigLocation</param-name>
<param-value>/WEB-INF/classes/log4j.properties</param-value>
</context-param>
<filter>
<filter-name>Set
Character Encoding</filter-name>
<filter-class>
com.insightcn.point.web.filter.SetEncodeFilter
</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>GBK</param-value>
</init-param>
</filter>
<filter>
<filter-name>ConsoleLoginFilter</filter-name>
<filter-class>
com.insightcn.point.web.filter.CheckLoginFilter
</filter-class>
<init-param>
<param-name>exceptable-pages</param-name>
<param-value>manage/index.jsp,manage/login.do</param-value>
</init-param>
<init-param>
<param-name>admin-login-page</param-name>
<param-value>/manage/index.jsp</param-value>
</init-param>
</filter>
<filter>
<filter-name>FrontCheckLoginFilter</filter-name>
<filter-class>
com.insightcn.point.web.filter.FrontCheckLoginFilter
</filter-class>
<init-param>
<param-name>exceptable-pages</param-name>
<param-value>/fore/index.do</param-value>
</init-param>
<init-param>
<param-name>front-login-page</param-name>
<param-value>/fore/index.do</param-value>
</init-param>
</filter>
<!--
<filter>
<filter-name>Acegi Filter
Chain Proxy</filter-name>
<filter-class>
org.acegisecurity.util.FilterToBeanProxy
</filter-class>
<init-param>
<param-name>targetClass</param-name>
<param-value>
org.acegisecurity.util.FilterChainProxy
</param-value>
</init-param>
</filter>
-->
<filter-mapping>
<filter-name>Set
Character Encoding</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>ConsoleLoginFilter</filter-name>
<url-pattern>/manage/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>FrontCheckLoginFilter</filter-name>
<url-pattern>/fore/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>FrontCheckLoginFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
<!--
<filter-mapping>
<filter-name>Acegi Filter
Chain Proxy</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
-->
<!--
- Loads the root application
context of this web app at startup.
- The application context is
then available via
-
WebApplicationContextUtils.getWebApplicationContext(servletContext).
-->
<listener>
<listener-class>
org.springframework.web.util.Log4jConfigListener
</listener-class>
</listener>
<listener>
<listener-class>
com.insightcn.point.util.SpringContextLoaderListener
</listener-class>
</listener>
<!--
The HttpSessionEventPublisher
will publish
HttpSessionCreatedEvent and
HttpSessionDestroyedEvent
to the
WebApplicationContext
<listener>
<listener-class>
org.acegisecurity.ui.session.HttpSessionEventPublisher
</listener-class>
</listener>
-->
<!-- log4j config bootstrap loader-->
<servlet>
<servlet-name>log4j</servlet-name>
<servlet-class>
org.springframework.web.util.Log4jConfigServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Spring context config bootstrap
loader-->
<!--
<servlet>
<servlet-name>springContext</servlet-name>
<servlet-class>
org.springframework.web.context.ContextLoaderServlet
</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
-->
<!-- ============= The Struts ActionServlet
Configuration ============= -->
<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,/WEB-INF/struts-config-permission.xml,/WEB-INF/struts-config-jjq.xml,/WEB-INF/struts-config-wdj.xml,/WEB-INF/struts-config-hcc.xml,/WEB-INF/struts-config-zjf.xml,/WEB-INF/struts-config-hh.xml,/WEB-INF/struts-config-cyk.xml
</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>3</param-value>
</init-param>
<load-on-startup>4</load-on-startup>
</servlet>
<servlet>
<servlet-name>ValidateCodeServlet</servlet-name>
<display-name>
This is the
display name of my J2EE component
</display-name>
<description>
This is the
description of my J2EE component
</description>
<servlet-class>
com.insightcn.point.util.ValidateCodeServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>ValidateCodeServlet</servlet-name>
<url-pattern>/servlet/ValidateCodeServlet</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>DisplayPicture</servlet-name>
<servlet-class>
com.insightcn.point.util.DisplayPicture
</servlet-class>
<load-on-startup>3</load-on-startup>
</servlet>
<!--
- Provides core MVC application
controller. See contacts-servlet.xml.
-->
<!--
<servlet>
<servlet-name>contacts</servlet-name>
<servlet-class>
org.springframework.web.servlet.DispatcherServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
-->
<!-- ============= The Struts Action Servlet
Mapping ================== -->
<!--
-->
<!--
<servlet-mapping>
<servlet-name>contacts</servlet-name>
<url-pattern>*.htm</url-pattern>
</servlet-mapping>
-->
<!--
- Provides web services
endpoint. See remoting-servlet.xml.
-->
<!--
<servlet>
<servlet-name>remoting</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>remoting</servlet-name>
<url-pattern>/remoting/*</url-pattern>
</servlet-mapping>
-->
<servlet-mapping>
<servlet-name>DisplayPicture</servlet-name>
<url-pattern>/servlet/picture</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>/index.jsp</welcome-file>
<welcome-file>/index.html</welcome-file>
</welcome-file-list>
<taglib>
<taglib-uri>/spring</taglib-uri>
<taglib-location>/WEB-INF/spring.tld</taglib-location>
</taglib>
<!-- =============== The Struts Taglib
Definition ===================== -->
<taglib>
<taglib-uri>struts-bean</taglib-uri>
<taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>struts-html</taglib-uri>
<taglib-location>/WEB-INF/struts-html.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>struts-logic</taglib-uri>
<taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>struts-tiles</taglib-uri>
<taglib-location>/WEB-INF/struts-tiles.tld</taglib-location>
</taglib>
<!--
==================================================================
-->
<!-- ============= The Struts-Menu Taglib
Definition ================== -->
<taglib>
<taglib-uri>struts-menu</taglib-uri>
<taglib-location>/WEB-INF/struts-menu.tld</taglib-location>
</taglib>
<!-- ============= The Custome Taglib
Definition ================== -->
<taglib>
<taglib-uri>displaytag</taglib-uri>
<taglib-location>/WEB-INF/displaytag-11.tld</taglib-location>
</taglib>
<taglib>
<taglib-uri>displaywraptag</taglib-uri>
<taglib-location>/WEB-INF/displaytagpro-11.tld</taglib-location>
</taglib>
</web-app>
发表评论
-
java.lang.ClassCastException: java.lang.Integer
2010-01-09 12:55 1388java.lang.ClassCastException: j ... -
Error:org.springframework.web.context.ContextLoaderListener
2010-01-06 21:17 8689Error con ... -
Error configuring application listener of class org.springframework.web.context.
2010-01-06 21:11 20121急!!tomcat启动报错:Error configuring ... -
Cannot find bean org.apache.struts.taglib.html.BEAN
2009-12-29 14:29 1305Cannot find bean org.apache.str ... -
attempt to create delete event with null entity
2009-12-29 11:07 4688attempt to create delete event ... -
懒加载异常org.hibernate.LazyInitializationException: could not initialize proxy - no
2009-12-28 20:44 20209错误页面提示 could n ... -
getHibernateTemplate.load() 和get()之间的区别
2009-12-28 20:16 18751. getHibernateTemplate.load() ... -
getSession()与getHibernateTemplate()区别
2009-12-28 20:13 2567getSession()与getHibernateTempla ... -
使用Hibernate持久层 --- 2 出现的问题与解决方法总结
2009-12-28 15:04 1209使用Hibernate持久层 --- 2 出现的问题与解决方法 ... -
java.lang.NullPointerException DAO
2009-12-28 15:02 1858~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ... -
JSTL1.1中要用的jar--standard.jar jstl.jar
2009-12-09 00:35 4078gg -
Jsessionid
2009-12-07 16:22 1289(1) 这是一个 ... -
spring有三种启动方式,
2009-12-07 15:21 2473spring有三种启动方式,使用 ... -
ContextLoaderListener VS. ContextLoaderServlet
2009-12-07 15:20 3557一旦ContextLoaderServlet或Cont ... -
ERRORcheck whether you have multiple ContextLoader* definitions in your web.xml!
2009-12-07 15:17 6274ERROR:check whether you have mu ... -
从tomcat 迁移到 WebSphere 经验总结(修改)
2009-12-07 15:08 2456从tomcat 迁移到 WebSphere ... -
CGlib & asm
2009-12-07 15:01 2722缺少包出现的错误信息:cglib-2.1.3.jar CGL ... -
Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTup
2009-12-07 14:57 5443Unable to instantiate default t ... -
asm.jar的冲突问题
2009-12-07 14:53 1494No configuration found. Confi ... -
异常:ERROR [org.hibernate.proxy.BasicLazyInitializer] - CGLIB Enhancement failed..
2009-12-07 14:25 1815用MyEclipse6.0写了一个spri ...
相关推荐
### web.xml配置文件详解 #### 一、概述 `web.xml`是Java Web应用程序的核心配置文件之一,主要用于定义Web应用程序的结构与行为。它是Servlet容器(如Tomcat)读取Web应用程序配置信息的主要来源,因此深入理解其...
Web.xml 配置详解 Web.xml 是一个部署描述符文件,用于...web.xml 文件是 Web 应用程序的配置文件,用于描述 Web 应用程序的各种配置信息。了解 web.xml 文件的结构和元素次序对于开发和配置 Web 应用程序非常重要。
关于 web.xml 配置文件记录 Web.xml 配置文件是 Servlet 规范中定义的部署描述符文件,它是 Web 应用的配置文件。作为一个 XML 文件,web.xml 必须以一个 XML 头开始,声明可以使用的 XML 版本并给出文件的字符编码...
`web.xml`是Java Web应用的核心配置文件,用于定义Servlet、过滤器、监听器以及其他相关组件的行为和配置。它是按照Servlet规范定义的标准格式编写,独立于任何特定的应用服务器,如Tomcat。以下是对`web.xml`文件中...
web.xml 配置详解是指在 Java Web 应用程序中使用的部署描述符配置文件。它是一个 XML 文件,包含了很多描述 servlet/JSP 应用的各个方面的元素,如 servlet 注册、servlet 映射以及监听器注册。 在 web.xml 文件中...
### 在web.xml中引入其他XML配置文件的步骤 在Java Web开发中,`web.xml`作为Web应用程序的核心配置文件,负责定义应用级别的配置信息。为了提高代码的可维护性和复用性,有时需要将一部分配置内容提取到独立的XML...
在现代的Web开发中,"Web项目没有web.xml配置文件"是一个常见的现象,尤其是在使用Spring Boot、Spring MVC等框架时。传统的Java Web应用通常依赖于`web.xml`文件来配置Servlet、过滤器、监听器等核心组件,但在最新...
《Web.xml配置文件详解》 在Java Web应用中,`Web.xml`文件是核心的部署描述符,它定义了应用程序的结构、行为以及服务器如何处理请求。这份文档将深入探讨`Web.xml`配置文件的各个关键元素,帮助开发者更好地理解...
web.xml配置文件
`web.xml`配置文件在Struts2中扮演着至关重要的角色,它是整个应用的部署描述符,定义了应用程序的入口点、过滤器、Servlet以及其他Web组件的配置信息。在这里,我们将深入探讨`web.xml`配置文件在Struts2中的应用...
全新的java web项目的配置文件,新建的纯净的web.xml文件,没做任何改动,下载就可以使用了。
Struts2的Spring插件会在Struts配置文件(如struts.xml)中定义一个`<package>`,包含`<interceptors>`和`<default-interceptor-ref>`元素,这样Struts2就会知道如何与Spring协作,将Action实例化和依赖注入交给...
在构建基于Spring MVC的Web应用程序时,`web.xml`配置文件扮演着至关重要的角色。它定义了应用程序的行为,包括启动时的初始化、请求处理以及中间件的设置。下面我们将详细探讨`web.xml`中涉及Spring MVC的主要配置...
在Tomcat的`conf`目录下,有两个主要的XML配置文件:`server.xml`和`web.xml`。`server.xml`是Tomcat的主要配置文件,而`web.xml`则定义了应用程序的行为。 在`server.xml`中,我们需要配置`<Connector>`元素来启用...
4. **通过web.xml配置Log4j** - 在web.xml中,我们可以使用`<context-param>`标签来指定Log4j配置文件的位置,例如: ```xml <param-name>log4jConfigLocation <param-value>/WEB-INF/classes/log4j....