
Originally Posted by
NickB
I've got a login form configured to work with Spring Security - action set to j_spring_security_check and fields called j_username and j_password etc. The form works fine as normal, but I'd like to Ajaxify the form so that clicking log in will just update parts of the page. I figure there are two main possibilities: I could point the form at a controller and manually call the Spring Security stuff before returning an appropriate AJAX view; or I may be able to intercept the login process and specify the AJAX view to return, based on some request parameter maybe.
I'm not sure what code I would need for the first one, and I simply don't know if the second one is possible or how (without being overly hackish and breaking things). Can anyone give me any advice on this?