Sun Java System Web Server 6.1 SP6 Programmer's Guide to Web Applications

Servlet and JSP Caching

The Sun Java System Web Server has the ability to cache servlet or JSP results in order to make subsequent calls to the same servlet or JSP faster.

The Sun Java System Web Server caches the request results for a specific amount of time. In this way, if another data call occurs, the Sun Java System Web Server can return the cached data instead of performing the operation again. For example, if your servlet returns a stock quote that updates every 5 minutes, you set the cache to expire after 300 seconds.

For more information about response caching as it pertains to servlets, see Caching Servlet Results.

For more information about JSP caching, see JSP Cache Tags.