This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi guys, I thought I needed to turn off caching on some of my pages. It was ok... Just now I discovered another problem, I need it on on some of my pages too! I have an application form and an error page where the application form forwards to the error page if something goes wrong
When I press the back button from errors.jsp, the values entered before are gone. This could make my users frustrated after filling up a very lengthy form. I need only to make the page expire if the user manages to go to the success page. Here are my HTML headers for both apply.jsp and errors.jsp..
and on some other pages...
Hope to hear from you soon guys! Thanks!
[ July 07, 2006: Message edited by: Timothy Sam ] [ July 07, 2006: Message edited by: Bear Bibeault ]
can you switch which of those meta tags gets rendered to the resulting jsp?
if you are not templating the site, then the required tags on each page.
if you use a common header include that contains them, pass a parameter to the include where
or, if you are using tiles and struts, i guess you could have a different top level tiles templates, one that includes a caching header, one that does not do caching tags.
Error: Keyboard not attached. Press F1 to continue.
Joined: Sep 18, 2005
Finally, a reply... Thank you very much. Actually, I didn't use Tiles because I didn't have time to learn them. But yes, the page is templated even the headers. I use similar headers like
So basically, even without tiles the app is almost completely templated. I have a feeling that your suggestion will most likely work so I will put that on my app now and inform you of what happened.
Also, the page I want to cache is not an included page.
Thank you, thank you, thank you. [ July 09, 2006: Message edited by: Timothy Sam ]
Joined: Sep 18, 2005
Hmmmm... There's really something wrong.
this doesn't seem to do it. When I press the back button, the form values still disappears. Oh my... This is getting very frustrating... Please help...
Are you using HTTP 1.1 ? (there's an option in IE which should be turned on)
And maybe you should read about cache and meta tags here: http://www.mnot.net/cache_docs/#META In clear, try to use access HTTP headers directly, rather than rely on meta tags. [ July 10, 2006: Message edited by: Satou kurinosuke ]