I think the issue is that the login is a component that exists on many 
pages and the login/failure should return the user to the page they were 
viewing rather than a stock login/home page.

The best bet at this point is probably to subclass APF and just redirect 
or forward back to a URL stored in a form parameter. You will have to 
place the current URL in a hidden field. You might be able to pull off a 
referrer URL as well depending on your setup.

-bp


Ben Alex wrote:
> Tom Stroobants wrote:
>
>   
>> Suppose that my login form is integrated in an other page and I want to
>> return to that page that integrated my login page (so the original page)
>> ... How do you do that in ACEGI ?
>>     
>
> Couldn't you use AbstractProcessingFilter.defaultTargetUrl = your login
> page plus AbstractProcessingFilter.alwaysUseDefaultTargetUrl = true?
>
> HTH
> Ben
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Home: http://acegisecurity.org
> Acegisecurity-developer mailing list
> Acegisecurity-developer@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer
>   


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer

Reply via email to