Re: double submit problem

2006-01-09 Thread Rick R
Rafael Taboada wrote: Thanks for ur replies... I'm interested in tokens method Please, do u know a site where I can find more information about this??? I have an example and lesson here on it: http://www.learntechnology.net/struts-token.do -- Rick

Re: double submit problem

2006-01-09 Thread Rafael Taboada
Thanks for ur replies... I'm interested in tokens method Please, do u know a site where I can find more information about this??? thanks -- Rafael Taboada Software Engineer Cell : +511-97753290 "No creo en el destino pues no me gusta tener la idea de controlar mi vida"

Re: double submit problem

2006-01-08 Thread Michael Jouravlev
On 1/6/06, Rafael Taboada <[EMAIL PROTECTED]> wrote: > Hi folks... I'm trying to solve my problem when an user submit a form and he > clicks the submit button more than twice. > > My app runs perfect... I mean, It saves data. But in this case, it saves > data as many clicks the user does. > > Do u

Re: double submit problem

2006-01-08 Thread Ted Husted
I can't speak to Struts Dialog, but in a typical Struts application you can guard against double submits by calling saveToken(request); in the "prepare" action that displays the form for editing. In the "process" action that handles the save, check boolean tokenValid = isTokenVal

double submit problem

2006-01-06 Thread Rafael Taboada
Hi folks... I'm trying to solve my problem when an user submit a form and he clicks the submit button more than twice. My app runs perfect... I mean, It saves data. But in this case, it saves data as many clicks the user does. Do u know how I can solve that? I'm trying to use Struts Dialog: http

Re: synchronizer token - double submit problem

2004-10-18 Thread umamaheswara rao
Hi, Does the Struts 1.0 (synchronizer token)supports the following mechanism ? saveToken(request) ..? isTokenValid(request) ..? setting the hidden field in the form(Token value from session) automatically...? Thanks Uma Kagitha. --- Craig McClanahan <[EMAIL PROTECTED]> wrote: > Once y

Re: synchronizer token - double submit problem

2004-10-14 Thread umamaheswara rao
Hi, Good to get Response from you Mr. Craig McClanahan. Please find the following problem I've ... I've followed the article mentioned in javaworld (http://www.javaworld.com/javatips/jw-javatip136_p.html), Since I have BaseActionClass which extends Action class following are the Action cla

Re: synchronizer token - double submit problem

2004-10-14 Thread Jeff Beal
The tag inserts the token as a hidden field. umamaheswara rao wrote: Hi , Your help is apprciated. How do I set a token it to JSP ? do I need to have to set the token to the form bean(form.setToken("value from session with saveToken method")) in the action class which calls saveToken(req

Re: synchronizer token - double submit problem

2004-10-14 Thread Craig McClanahan
Once you've called saveToken(), the tag will automatically create a hidden field with a name that is known to the isTokenValid() and resetToken() methods -- you do not have to do anything at all in the JSP page for this to work. Craig On Thu, 14 Oct 2004 11:30:28 -0700 (PDT), umamaheswara rao <

synchronizer token - double submit problem

2004-10-14 Thread umamaheswara rao
Hi , Your help is apprciated. How do I set a token it to JSP ? do I need to have to set the token to the form bean(form.setToken("value from session with saveToken method")) in the action class which calls saveToken(request) method ? I understand the following process...but I got stu