June 20th, 2003, 01:24 AM
How to implement content caching for jsp page ?
I am reading an article <Servlets and Jsp Best Practice>,at
http://developer.java.sun.com/develo...s_jsp/#author, on one section it is saying :
"Cache content: You should never dynamically regenerate content that doesn't
change between requests. You can cache content on the client-side, proxy-
side,or server-side. "
Now I am working on a project. For every user, some of the content servlet generated will be the same for at least a week . I am thinking if I implement caching for these jsp pages, that would increase performace a lot.
But I have no idea how to implement it either on client-side or server-side, can someone give me a hint ?
June 21st, 2003, 01:34 AM
OpenSymphony has OSCache, an open source JSP tag library that can do caching on segments of a JSP page or even on dynamic binary content.
While you're there also check out Webwork, a webapp framework like struts or Sitemesh, a tag library that lets you easily include output from cgis and other non-java sources in jsp pages.