Explain about token feature in Struts ?

Use the Action Token methods to prevent duplicate submits:

There are methods built into the Struts action to generate one-use tokens. A token is placed in the session when a form is populated and also into the HTML form as a hidden property. When the form is returned, the token is validated. If validation fails, then the form has already been submitted, and the user can be apprised.

  1. saveToken(request)
  2. on the return trip,
  3. isTokenValid(request)
  4. resetToken(request) 

Enter your email address to get our daily JOBS & INTERVIEW FAQ's Straight to your Inbox.

Make sure to activate your subscription by clicking on the activation link sent to your email