I would rather avoid using Acegi as I'm not using Spring. I'm using Struts 2
and EJB3.

I appreciate the Acegi can be used without Spring. But it still seems like
overkill to solve this one issue.

I was hoping to generate a call to login.action like
".../login.action?url=<complete request string>". I guess storing the
request string in the session would work just as well. Do you know the
easiest way to access the request string from an interceptor or action?

Many Thanks,

Steve

-----Original Message-----
From: Lukasz Lenart [mailto:[email protected]] 
Sent: 19 May 2009 15:26
To: Struts Users Mailing List
Subject: Re: Accessing protected resources via a login page

2009/5/19 Steve <[email protected]>:
> Can anyone advise on the best way to do this?

Use Acegi, it has such functionality built-in or store request path in
session when redirecting to login page and after successful login,
read it from session and redirect to it. It should be achievable with
the same interceptor you created.


Regards
-- 
Lukasz
http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to