Now I use webwork 2 ,hibernate,velocity to build my
application.I use oscache to cache my web
application.I meet messy yard in my webpage if I use
oscache.But I don't use oscache ,all work well.My page
is encoded by UTF-8.My web.xml s:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems,
Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd";>
<web-app>

  <display-name>Jocket - Java News
System</display-name>

  <filter>
    <filter-name>container</filter-name>
    <display-name>webwork container</display-name>
    <description></description>
   
<filter-class>com.opensymphony.webwork.lifecycle.RequestLifecycleFilter</filter-class>
  </filter>

  <filter>
    <filter-name>oscache</filter-name>
    <display-name>oscache</display-name>
   
<filter-class>com.opensymphony.oscache.web.filter.CacheFilter</filter-class>
    <init-param>
      <param-name>time</param-name>
      <param-value>1</param-value>
      <description>cache time</description>
    </init-param>
    <init-param>
      <param-name>scope</param-name>
      <param-value>session</param-value>
      <description>sope type</description>
    </init-param>
  </filter>

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

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

  <listener>
   
<listener-class>com.opensymphony.webwork.lifecycle.ApplicationLifecycleListener</listener-class>
  </listener>

  <listener>
   
<listener-class>com.opensymphony.webwork.lifecycle.SessionLifecycleListener</listener-class>
  </listener>

  <listener>
   
<listener-class>net.sf.jocket.listener.JocketContextListener</listener-class>
  </listener>

  <servlet>
    <servlet-name>velocity</servlet-name>
   
<servlet-class>com.opensymphony.webwork.views.velocity.WebWorkVelocityServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>

  <servlet>
    <servlet-name>webwork</servlet-name>
   
<servlet-class>com.opensymphony.webwork.dispatcher.ServletDispatcher</servlet-class>
  </servlet>

  <servlet-mapping>
    <servlet-name>velocity</servlet-name>
    <url-pattern>*.vm</url-pattern>
  </servlet-mapping>

  <servlet-mapping>
    <servlet-name>webwork</servlet-name>
    <url-pattern>*.jspa</url-pattern>
  </servlet-mapping>


  <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    <welcome-file>default.jsp</welcome-file>
    <welcome-file>index.html</welcome-file>
  </welcome-file-list>

  <taglib>
    <taglib-uri>webwork</taglib-uri>
   
<taglib-location>/WEB-INF/lib/webwork-2.0-beta.jar</taglib-location>
  </taglib>

  
</web-app>



=====
Welcome to acai's blog (<a 
href="http://acai.ejb.cn/blog";>&#38463;&#33756;&#30340;&#23478;</a>)

__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to