Hi, I need to stop: 1. multiple post to an action 2. refresh of a page using Struts.
What i tried was using the Struts Token. I have a common BaseAction class that extends Action class. All the other action classes extend the BaseAction class. In my BaseAction class I did the following: 1. public static boolean blnFirst = true; 2. In execute method: if(blnFirst){ System.out.println("****BaseAction: FIRST Time"); saveToken(httpRequest); this.blnFirst = false; } Saving the token adds an attribute: org.apache.struts.Globals.TRANSACTION_TOKEN_KEY in the session Now when I try to check the validity of the token by isTokenValid(httpRequest), it is everytime resolving to NULL. This piece of code: httpRequest.getSession().getAttribute(Globals.TRANSACTION_TOKEN_KEY) returns some value only the first time.All the other time it returns null. Do I need to save the token every time? (Which I dont think so) OR just once(which I'm doing) OR is there any other way? I'm resetting the token every time using resetToken(httpRequest). Please help me out. -- View this message in context: http://www.nabble.com/Struts-Token-help-tp14450975p14450975.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]