wood burning stoves 2.0*
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
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
internet detective
Marshal

Joined: May 26, 2003
Posts: 30116
    
150

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.
 
 
subject: How to resolve caching problem in Struts 1.x
 
Similar Threads
Autocomplete search with Struts and Hibernate
Struts Tiles without Struts?
Generating PDF
iam not able to find my tag libraries struts-bean.tld and struts-html.tld
commons FileUpload.