You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by #Cyrille37# <cy...@gmail.com> on 2007/07/03 17:59:20 UTC
[T4] Login.html as the Login and Failed page for Acegi
Hello,
After many mails on that list and many read on the web I get something
running (Tap4.1.2, Spring2, Hibernate3, Acegi, Json-Rpc).
Ouf !
I would like to make only one page for Login and LoginFailed but I could
not find how the Login page can know that it is coming back from the
ACEGI url /j_acegi_security_check.
I've got a easy Login class :
...
public void login( IRequestCycle cycle ) throws RedirectException
{
if (!getDelegate().getHasErrors())
{
String acegiUrl = cycle.getAbsoluteURL(
"/j_acegi_security_check?" + "j_username="
+ getUsername() + "&j_password=" + getPassword() ) ;
throw new RedirectException( acegiUrl ) ;
}
}
...
So, which feature to use by the Login page to know if the request is
from the user (for Login request) or from Acegi (Login failed) ?
Thanks a lot
cyrille
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org