A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Node.js in Action
this week in the
Duplicate request submission on refreshing the page
Joined: Jul 21, 2010
Jun 22, 2011 06:46:33
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?
Joined: Mar 08, 2011
Jun 22, 2011 10:39:11
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
How to iterate through ActionMessage in Action class?
problem with registration page
Missing request parameters after servlet chaining
Loading multiple forms in single jsp
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014