Sunday, 8 July 2018

Java save JSP page in cache

I want to use cache to load JSP page. I have created a Dynamic Web Project using Java JSP Servlet.

In this Project I am getting the data (in JSON) from Rest API call and rendered this data into JSP page inside table, dynamically.

I am also getting the Key Name 'lastUpdate' with data time in API data.

For the first time I have to rendered data inside table then second time after calling the Rest API, I have to check if my 'lastUpdate' (which is available in cache) time is same as 'lastUpdate' which is coming from Rest API call then I have to show the same page using cache.

I am not sure it possible or not, I am new in cache management.

So please share your feedback and some examples or tutorial which I can used for reference.



from Java save JSP page in cache

No comments:

Post a Comment