Jsp cache problem

Posted by idiotgenius on Stack Overflow See other posts from Stack Overflow or by idiotgenius
Published on 2010-12-27T10:34:48Z Indexed on 2010/12/27 10:54 UTC
Read the original article Hit count: 201

Filed under:
|
|

I use javascript and css to build a multi-level drop down menu with following markups:

<ul>
   <li>menu item 1</li>
       <ul>
         <li><a href="#">sub menu menu item 1</a></li>
         ................. 

This markup is generated by a custom JSTL tag <mui:menu .../> which loads menu data from a database.

I hope my jsp page can behave like this:

  • if menu data has not changed since last time I visited the page, just use browser's cache
  • otherwise load from database...

How can I do it? I don't know much detail about cache mechanism.

© Stack Overflow or respective owner

Related posts about caching

Related posts about jsp