ContactUs

Please send your Questions & Answers or Feedback to "mohan@javabook.org"

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.

saveToken(request)

on the return trip,

isTokenValid(request)

resetToken(request) 

Related Posts Plugin for WordPress, Blogger...
Flag Counter