struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "starki78" <stark...@libero.it>
Subject saveToken:solution works~~
Date Tue, 02 May 2006 13:15:16 GMT
Thank you for your comments
now I made a few steps but my solution

Then I submit twice I want that the first submit continues
and the second will be ignored!!!!!
In this example also the first request will 
be stopped! How can you prevent this??
Has someone an idea?

  in the first action
   I use saveToken(request)
     
   in the second:

    //forward to the input
    if(!isTokenValid(request,true)) //submit functionality here
        ActionMessage msg = new ActionMessage("errors.noToken","<b></b>");
      messages.add("msg", msg);       
      saveMessages(request, messages);
      saveToken(request);
      return mapping.findForward("error");
    
     }

    dosomework 

    resetToken()  

Hope someone can help me!
Thanks a lot!
Starky






---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message