0 Replies Latest reply on Nov 17, 2010 3:50 AM by piebue

    External Login Page to JSF/Spring-Webapplication

    piebue Newbie

      Hello,

       

      I have two difference sites. The first is a external login page with simple HTML formular. The other site is a login page of a webapplikation with JSF and Spring. I want to login from the first site to the webapplication.

       

      Here my HTML formular from the first site:

       

      <form name="sociato_login_formular" method="post"
      action=”http://SERVER_ADRESS_WEBAPPLICATION/j_spring_security_check?spring-security-redirect=/STARTPAGE_AFTER_LOGIN.html”
      accept-charset="utf-8"
             target="index.html">
             <p id="login_title">Login</p>
             <input name="j_username" type="text" size="16" tabindex="1"
                   onblur="if(value=='')value='Benutzername'"
                   onfocus="if(value=='Benutzername')value=''" />
             <input name="j_password" type="password" size="16" tabindex="2"
                   onblur="if(value=='') value='Passwort'"
                   onfocus="if(value=='Passwort') value=''" />
             <input name="returnToUrl" value="http://www.google.de" type="hidden" />
             <p><a id="pwd_forgotten_link"
      href="http://SERVER_ADRESS_WEBAPPLICATION/password_forgotten.html">
                   Passwort vergessen?
                    </a>
             <input name="login_button" type="submit" value="Login"
      tabindex="3" accesskey="l"></input>
      </p>
      </form>
      

       

      It’s works, but my problem is to capture the errors, if the user data isn’t correct. If the user data is wrong, then I come to the login-error-page of the the webapplication (JSF, Spring). But I want to redirect back to the HTML formular and a message that die user data is incorrect.

       

      Have anyone a idea?

       

      Thanks.