Can I use struts token mechanisim without a formbean ?
Thanks & Regards
Manfred Wolff <[EMAIL PROTECTED]> wrote:
Found at http://husted.com/struts/catalog.html
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,/
o isTokenValid(request)
o resetToken(request)
Perhaps someone (me?) must write a documentation? If I have a little
time, and no has do so, I will do.
Manfred
temp temp wrote:
> Can U suggets me an article which clearly explains using struts tokens
> mechanisim?
>
> Manfred Wolff wrote:
> Lixin.
>
> I think mostly it is no problem to go back in a struts implemented
> application. If it ist a problem (e.g. after a logout or if you saved
> data) you can take the struts token mechanism to prevend such backs.
>
> Manfred
>
> Lixin Chu wrote:
>
>> A cleaner back button solution is almost a must-have for logout:
>> after logout, the back button should not bring back the previous page.
>>
>> looking at that Gmail does. any idea how it is implemented ?
>>
>>
>
>
>
--
===========================================
Dipl.-Inf. Manfred Wolff
Software Engineer
Fon : +49 421 534522
Fax : +49 421 4314578
Mobil: +49 173 2494181
-------------------------------------------
http://www.manfred-wolff.de
http://www.struts-it.org
-------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.