Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Use of Cache Tag  RSS feed

Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just started going through custom tags and have gone through "Professional Jsp tag libraries" by Simon Brown. I would like to thank Simon for the book.As, it turns out, one never has time to start from scratch, so was considering to use 3rd party tags.
Had query about using Cache Tag from jakarta taglibs.
In my application, i have javabeans, which handle business processing. These beans have methods which return the collection of objects after querying the database. These objects need to be paged.So, now question is can I use cache tag or any other tag to cache the collection, for paging? The collection wouldnt be very large, max it could have 100 objects.Dont want to have database trip for every page, just wanna make one trip initially and then just used cached collection for paging.
Would appreciate, if some sample code also could be made available.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!