• Post Reply Bookmark Topic Watch Topic
  • New Topic

caching jsp page segments - oscache replacement?  RSS feed

 
kevin kelleher
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

This is a very general question.

I've inherited a project that uses oscache to cache jsp page fragments.
<cache:cache key="navigationBar" language="<%= language %>" scope="session"><t:include name="navigationBar" path="/navigationBar.jsp"/></cache:cache>
Works fine ...

However oscache is no longer an active project. Seems a shame as it provides useful functionality!

So my question is .... what is the best technology to use now to cache jsp page fragments?

Regards,
Kevin
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36446
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kevin,
Welcome to CodeRanch!

EhCache has SimplePageFragmentCachingFilter to cache JSP fragments. While I've used EhCache, I've never used the JSP caching parts of it yet. But I assume it is solid since the other parts of the library are.
 
kevin kelleher
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply Jeanne,

Yes, I had looked at EhCache SimplePagefragmentCachingFilter. However my understanding is that you cannot use SimplePagefragmentCachingFilter to cache session data, i.e. data particular to a logged on user.

My (inherited) application has a banner and menu on each screen page specific to each user. Currently oscache is used to cache said banner & menu. When we migrate the project, I need an alternative to oscache as it's no longer an active project.

Regards,
Kevin
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just curious - is caching really required here and does it show noticeable improvement in the JSP rendering? I hadn't heard of integrating a caching framework with JSPs before this.
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What drives the desire to move to a different library? A library being dated doesn't mean it's not perfectly functional.

I, too, haven't encountered the need to cache JSP fragments, much less on a per-user basis. My guess would be that the non-existence of current libraries that do this is an indicator of the (un)importance placed on it in general.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!