struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wendy Smoak" <wsm...@gmail.com>
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 <anilkumart@infics.com> 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.

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message