what are the features of Tokens in struts ?


Web tier: servlets, JSP, Web frameworks: what are the features of Tokens in struts ?

  1. what are the features of Tokens in struts ? (2 messages)

    Hi, i have a question in struts frame work, what is the purpose of token in struts? and Please give the one or two realtime examples. hope i will get response with exmaple. Thanks sridhar HYD
  2. The main problem that tokens are trying to solve is the one of double submissions of forms. Interestingly enough, it can also be used to handle the "back" and "forward" button behavior. The concept basically works around the fact that struts assigns tokens to each page it serves (forms) expecting those token back. If the token is not valid, then you know a double submission took place. It basically works around the following 3 methods (which can be used within any Action Class) * saveToken(HttpServletRequest req) * isTokenValid(HttpServletRequest req) * resetToken(HttpServletRequest req) Take a look at: http://www.learntechnology.net/content/struts/struts_token.jsp for examples. Hope this helps!
  3. prevent mutli-click using struts tokens http://www.techfaq360.com/tutorial/multiclick.jsp