Hello Hong,
I'm not sure how to handle this.... Read up on it, I know that it worked fine for me the way I explained to you. It doesn't seem that the client would make a difference in how this works either. Even if it did queue it up, the first submit in queue would hit the server, respond back and subsequent submits would hit and then forward to the resubmitted page. Did you put an entry in your struts-config.xml for the resumit forward?


Brandon

Anthony Hong wrote:

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]










---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to