View Full Version : regarding double click in web mvc
shahzad992
Mar 20th, 2006, 02:52 AM
Hi,
i m not using spring web mvc,
how can i prevent user to double click other than java script?
Regards,
shahzad
shahzad992
Mar 21st, 2006, 03:08 AM
Hi,
I solved it by doing following thing:
In the formBackingObject of the form Controller put the current Timestamp in the session and in the Command model (I used base class for my all Command object, which has a property of timestamp) as well.
On submit first check the get the timestamp from session and check if it is equal with Command object’s timestamp, then its is valid and update the timestamp of Command object, and if it is not equal then do nothing (all this i did on the MyControllerBaseClass which extends SimpleFormContoller).
anyone can confirm me in this regard.
Regards,
Shahzad
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.