• Post Reply Bookmark Topic Watch Topic
  • New Topic

caching pages  RSS feed

 
Ramesh Shanmugam
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i need to cache my page in the server...

My page is a one which is going to fetch data from DB each time he comes to my page.. but i need to cache my page in the server..

pls help me in this regars..
 
leon fan
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't need cache your page,
You only need save your object into sesion or appliation scope, then use these objects when user access your page again.
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Following is the code to do as what Leon Fan said..

Suppose you are storing your data in ArrayList named data.



Hope I have made you more clear.

Reg,
Chetan
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!