File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 Head First Android this week in the Android 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.

 
Don't get me started about those stupid light bulbs.
 
subject: Duplicate request submission on refreshing the page
 
It's not a secret anymore!