RE: Accessing protected resources via a login page

2009-05-21 Thread Steve
inal Message- From: Stuart Ellidge [mailto:stuart.elli...@adaptris.com] Sent: 20 May 2009 17:11 To: Struts Users Mailing List Subject: Re: Accessing protected resources via a login page Hi Steve, Glad to hear you got it working - just as an observation (and I really haven't tested this to che

Re: Accessing protected resources via a login page

2009-05-20 Thread Stuart Ellidge
This worked fine as the parameters interceptor automatically decodes parameters. Cheers, Steve -Original Message- From: Stuart Ellidge [mailto:stuart.elli...@adaptris.com] Sent: 19 May 2009 16:56 To: Struts Users Mailing List Subject: Re: Accessing protected resources via a login page Hi Ste

RE: Accessing protected resources via a login page

2009-05-20 Thread Steve
Ellidge [mailto:stuart.elli...@adaptris.com] Sent: 19 May 2009 16:56 To: Struts Users Mailing List Subject: Re: Accessing protected resources via a login page Hi Steve, What you are asking is relatively simple really - we implemented an interceptor to capture the current request URL and

Re: Accessing protected resources via a login page

2009-05-19 Thread Wes Wannemacher
On Tuesday 19 May 2009 05:05:11 pm dusty wrote: > I think this is more difficult than most people think. There are a lot of > use cases and edge cases that make most home grown solutions pretty > fragile. I think GETs are pretty easy but it gets a little more exciting > when you are dealing with P

Re: Accessing protected resources via a login page

2009-05-19 Thread dusty
ike > ".../login.action?url=". 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- >

Re: Accessing protected resources via a login page

2009-05-19 Thread Stuart Ellidge
access the request string from an interceptor or action? Many Thanks, Steve -Original Message- From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com] Sent: 19 May 2009 15:26 To: Struts Users Mailing List Subject: Re: Accessing protected resources via a login page 2009/5/19 Steve : > Ca

RE: Accessing protected resources via a login page

2009-05-19 Thread Steve
Struts Users Mailing List Subject: Re: Accessing protected resources via a login page 2009/5/19 Steve : > 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, r

Re: Accessing protected resources via a login page

2009-05-19 Thread Lukasz Lenart
2009/5/19 Steve : > 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