This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to resolve caching problem in Struts 1.x  RSS feed

 
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
Sheriff
Posts: 37222
519
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!