This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes Struts 2 - Action only executes first time when using IE8 but works as expected in Firefox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 - Action only executes first time when using IE8 but works as expected in Firefox" Watch "Struts 2 - Action only executes first time when using IE8 but works as expected in Firefox" New topic
Author

Struts 2 - Action only executes first time when using IE8 but works as expected in Firefox

Richard Golebiowski
Ranch Hand

Joined: May 05, 2010
Posts: 213

I have a simple JSP page with three anchor tags in my application that I use for testing. After the action is completed I return with the same JSP page and display the results. In IE8 each action executes only the first time it is clicked. On subsequent clicks IE8 will display the page with the results for that action from the first time the link was clicked but the action is never executed on the server.

Richard Golebiowski
Ranch Hand

Joined: May 05, 2010
Posts: 213

I fixed the problem by adding the following:



Stupid IE!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Struts 2 - Action only executes first time when using IE8 but works as expected in Firefox