I want to learn how to tell the succes and error events in ajax to show messages according to a
java value.
My boolean value will tell me if the user is ok to login or not.This is my server side loginForm.jsp
This is my javascript function
Any help would be apreciated.I really need to understand how succes and error work and the most secure way to do such login actions.