Thanks Denial, But the code which I have submitted fine, there is no need to add anything extra.
-Jignesh On Friday 21 May 2004 21:36, Daniel Perry wrote: > If you are calling saveToken(request) before isTokenValid like your code > suggests, you are probably overwriting the token in the session, so it is > different to the one being submitted in the form! > > It should happen as follows: > > In the action that gives the form: > saveToken(request); > > Then in the action the form is submitted to: > > if(!isTokenValid(request){ > //token vaildation failed so send to error page (or straight onto > success page if desired) > return mapping.findForward("failure"); > }else{ > resetToken(request); > // do some work as token is ok > return mapping.findForward("success"); > } > > Daniel. > > > -----Original Message----- > > From: Jignesh Patel [mailto:[EMAIL PROTECTED] > > Sent: 21 May 2004 17:05 > > To: Struts Users Mailing List > > Subject: double click submit button problem > > > > > > Hi, > > To avoid double click problem we implemented code in our execute > > method as > > follows > > saveToken(request); > > if(!isTokenValid(request){ > > //submit > > mapping.forward(target); > > }else{ > > resetToken(request); > > } > > but then the page is not working as expected whenever we double > > click the page > > is not getting submitted at all, can anybody suggest what wrong I > > am doing. > > For your information we are using one Action class per form so I > > am setting > > saveToken method in execute method as per form. > > -- > > Jignesh Patel > > Project Leader > > ____________________________________________________________ > > Bang Software Technolgy Pvt. Ltd. > > > > > > (E) [EMAIL PROTECTED] > > > > (T) 091 484 3942132 > > > > > > B-4, Smart Business Centre, > > Infopark, SDF IT Building, > > Kusumagiri P.O.,Kakkanad, > > Kochi - 682030, > > Kerala, > > India. > > > > Information contained in this transmission to the named > > addressee, including > > any attachments thereto, should be > > considered the proprietary and confidential information of the > > sender. As a > > condition for viewing the information, > > the sender agrees to keep the information confidential, to refrain from > > disclosing the information, directly or > > indirectly, and to refrain from any actions that would constitute or > > facilitate unauthorized access to the > > information without express permission from the sender. The > > recipient also > > acknowledges and agrees to respect > > sender's intellectual property rights in and to the > > information. If the > > recipient of this transmission is not > > the named addressee, the recipient should immediately notify the > > sender and > > destroy the information transmitted > > without making any copy or distribution thereof. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Jignesh Patel Project Leader ____________________________________________________________ Bang Software Technolgy Pvt. Ltd. (E) [EMAIL PROTECTED] (T) 091 484 3942132 B-4, Smart Business Centre, Infopark, SDF IT Building, Kusumagiri P.O.,Kakkanad, Kochi - 682030, Kerala, India. Information contained in this transmission to the named addressee, including any attachments thereto, should be considered the proprietary and confidential information of the sender. As a condition for viewing the information, the sender agrees to keep the information confidential, to refrain from disclosing the information, directly or indirectly, and to refrain from any actions that would constitute or facilitate unauthorized access to the information without express permission from the sender. The recipient also acknowledges and agrees to respect sender's intellectual property rights in and to the information. If the recipient of this transmission is not the named addressee, the recipient should immediately notify the sender and destroy the information transmitted without making any copy or distribution thereof. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]