aspose file tools*
The moose likes Struts and the fly likes How to resolve caching problem in Struts 1.x Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to resolve caching problem in Struts 1.x " Watch "How to resolve caching problem in Struts 1.x " New topic
Author

How to resolve caching problem in Struts 1.x

prabhu pandurangan
Ranch Hand

Joined: May 23, 2008
Posts: 120
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

Joined: May 26, 2003
Posts: 30758
    
156

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.)


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
prabhu pandurangan
Ranch Hand

Joined: May 23, 2008
Posts: 120
@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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to resolve caching problem in Struts 1.x