struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wendy Smoak" <>
Subject Re: How to handle session validation in struts 1.1
Date Mon, 14 Aug 2006 13:40:30 GMT
On 8/14/06, Anil Kumar T <> wrote:

> I need to validate the user session in all actions. For this I tried
> using saveToken, isTokenValid(), but failed to use them. Not sure what
> the reason is but it fails during second request. Any info on this
> particular step or is there any other way to handle the session in
> struts?

Tokens are used to prevent duplicate form submits, so failure on the
second request sounds correct.

If you need to do something in every Action, consider a base action
from which all of yours inherit, a Filter, or a security framework.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message