I want to display custom error message in jsp for spring security authentication exceptions.
For wrong username or password,
spring displays : Bad cr
I am new to spring, but try this at the server:
throw new BadCredentialsException("This is my custom message !!");
Of course you need a class that is an authentication provider for this to work.