A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
How token works in struts
Joined: Sep 09, 2005
Sep 09, 2005 02:16:00
can anyone explain me how
Joined: Feb 05, 2003
Sep 09, 2005 09:18:00
When saveToken() is called, a hidden field will automatically be added to forms in your jsps (assuming you use html:form). The Struts
stores [in session] the most recent token.
isTokenValid() checks to see if the hidden variable submitted with the form matches the most recent one set through the saveToken method.
A good workman is known by his tools.
I agree. Here's the link:
- it saves me about five hours per week
subject: How token works in struts
Form does not carry data
Multiple file Download
Struts interview questions...
Can I use the paramProperty from a hyperlink in a textfield in the called .jsp-page?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013