I count a problem when use Struts Token. When I submit a form, Action class will check token, get data and response to customer. But If I click more than one time during Action processing request, It will send request one by one after each response. That seams, IE put my click even in a queue and send it to server one by one. How to handle this problem? I want to send warning message during one request is processing.
On Thu, 03 Feb 2005 07:39:57 -0500, Brandon Mercer <[EMAIL PROTECTED]> wrote: > Kalluru Uma. Maheswar wrote: > > >What is this "Token System"? How to use it? > > > > > Two lines of code really! When you create the form you'll do > > public ActionForward yourForm( > final ActionMapping mapping, > final ActionForm form, > final HttpServletRequest request, > final HttpServletResponse response) > throws Exception { > > /* the money maker right here */ > saveToken(request); > /* back to your old regular stuff */ > HttpSession session = request.getSession(); > ... > > Then when you go to process this form, you'll need to add this line to > your action class > isTokenValid(request, true)) { > /* do some stuff with your form */ > return mapping.findForward("success"); > } else { > return mapping.findForward("resubmit"); > } > > Hope this helps! > Brandon > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Anthony Hong --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]