• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to resolve caching problem in Struts 1.x

 
prabhu pandurangan
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have to implement 302 redirect for one of my struts action flow and on clicking the browser back server call should happen this is my requirement.

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34669
366
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could use NoCacheHeaders to force a server call on refresh. Or you could use a POST on the previous page to force a resubmission (which might be a hack depending on why you want to go to the server.)
 
prabhu pandurangan
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Boyarsky:

Thanks for your reply.

I tried to apply nocacheheaders in my response but on clicking browser back im getting page expired error and so we tried to implement the 302 redirect and on clicking browser back server call has to be made. please share me the sample code base for the same and how to do a POST on previous page to force a resubmmision.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic