#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2003
    Posts
    7
    Rep Power
    0

    Question How to implement content caching for jsp page ?


    Hello everyone,

    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 ?

    Thanks,
    Rachel
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2001
    Posts
    5
    Rep Power
    0
    http://www.opensymphony.com/oscache/

    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.

IMN logo majestic logo threadwatch logo seochat tools logo