aspose file tools
The moose likes Tomcat and the fly likes JSP caching with Apache web server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "JSP caching with Apache web server" Watch "JSP caching with Apache web server" New topic

JSP caching with Apache web server

Sukh Mutneja

Joined: Jul 15, 2008
Posts: 2
I am looking to implement caching for JSP pages served from Tomcat using Apache and mod_cache. I have found limited information detailing how this works. I was hoping someone may have tried this before and maybe even had some lessons learned? These JSP pages are basically rendered once, no content is specific to each user session, which is why they appear to be good candidates for caching.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42952
In that case, why not make them HTML pages? Render them once into files in a publicly accessible directory, and you're done.

If you still want to use servlets/JSPs, check out CacheHttpServlet and EhCache for some ideas.
Sukh Mutneja

Joined: Jul 15, 2008
Posts: 2
Thanks. Creating jsp is a requirement. jsp rendition is created in Documentum and published on the tomcat app server which is behind the firewall. we have two caching servers outside the firewall which need to work as proxy/reverse proxy and cache the jsp from the tomcat. Our jsp at this moment does not have any major functionalities they are mere htmls saved as jsp's. We are having jsp's because they will have a bigger role in future phases of the project. we will not be able to implement ehcache for this rollout.
Don't get me started about those stupid light bulbs.
subject: JSP caching with Apache web server