Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Page doesn't reload after redirect in IE

 
Leticia Barbalho
Ranch Hand
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,

I use struts and I have an action that redirects to the same page where it came from. Here it goes:



In Firefox, it works just fine. In IE it doesn't. The action executes correctly but the page is not reloaded. If I click on it and choose "Reload" on the pop up menu, I'll see the changes made. But I wish it would reload by itself. Someone would know how?
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This might be due to IE caching the page.

Struts has a control that allows you to direct all browsers not to cache any of your pages. Try setting it and see if this fixes your problem.

To set it, put the following in your struts-config.xml file:

<controller nocache="true">
</controller>
[ January 18, 2006: Message edited by: Merrill Higginson ]
 
Leticia Barbalho
Ranch Hand
Posts: 37
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much for the help, but it did not solve it

Is there any other configuration?

Thanks
 
Reid M. Pinchback
Ranch Hand
Posts: 775
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your forwardings don't specify redirect="true". You aren't performing a redirect by way of the browser, you are just doing a standard forwarding directly from one servlet component to another.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic