Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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
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.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Duplicate request submission on refreshing the page