aspose file tools*
The moose likes Struts and the fly likes Duplicate request submission on refreshing the page 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 "Duplicate request submission on refreshing the page" Watch "Duplicate request submission on refreshing the page" New topic
Author

Duplicate request submission on refreshing the page

Jayavardhan geepi
Ranch Hand

Joined: Jul 21, 2010
Posts: 66
Hi,

I'm using struts-1.
In action class if I do findForward("to something") then I get a result page. If I refresh that page then the original request (which made entry into action class) will be sent again
and causing abrupt results.

Is there a way to solve this?

Please help..

Thanks
debraj mallick
Ranch Hand

Joined: Mar 08, 2011
Posts: 188

hi Jayavardhan,

use saveToken to prevent duplicate form submission (org.apache.struts.action.TOKEN)
google and you will fine the solution.

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Duplicate request submission on refreshing the page