原文链接:
http://www.jroller.com/page/sjivan?entry=ajax_based_login_using_aceci
Ajax based login using Acegi
Acegi is an extremely powerful Spring module for Authentication and Authorization and has almost become a defacto for web based applications built using Spring. Ajax based applications are getting hotter by the day and having a nice inplace Ajax based login page can improve coolness of your app and make it more Web 2.0'ish.
However implementing an Ajax-Acegi based login does require a little extra work because based on the J2EE spec, when a user tries to login, they are redirected back to the login page if the credentials are invalid or redirected to the success page on successful authentication.