怎么样在struts1里面使用oscache提高页面访问速度,就是在action里面怎么进行oscache操作
解决方案 »
- 简单hql
- mysql数据库问题
- jboss怎么设置成每次重新启动服务器都将数据库清空
- 简述JSP与JavaEE课程的关系
- 在struts helloword实例中jbuilder编译中的问题 急救
- 如何用Struts实现多文件上传?
- 为什么会出现RMI连接拒绝错误?
- dom,sax,jdom,jaxp,xerces有什么区别?现在项目要用,不知道选哪个,希望高手指点
- tomcat配置困惑,急,在线等待!
- CoroutinesUtils cannot be resolved
- 跪求3本书的CD内容《JavaScript网页编程从入门到精通》《JavaScript实例精通》《Java动画、图形和极富客户端效果开发》
- maven2多模块集成
先顶下楼主了。
局部缓存:<%@taglib uri="http://www.opensymphony.com/oscache" prefix=“oscache"%>
<oscache:cache>
<%=new Date() %>
</oscache:cache>
全局缓存:<filter>
<filter-class>com.opensymphony.oscache.web.filter.CacheFilter</filter-class>
<init-param>
<param-name>time</param-name>
<param-value>7200</param-value>
</init-param>
<init-param>
<param-name>scope</param-name>
<param-value>application</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>CacheFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>