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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to