A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
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
Missing request parameters after servlet chaining
How to iterate through ActionMessage in Action class?
Loading multiple forms in single jsp
problem with registration page
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014