I am developing a web application that makes use of the FORM-based authentication. I subclassed JBoss' DatabaseServerLoginModule to perform this. This login module throws custom FailedLoginException for different failure reason.
Is there anyway I can identify the failure reason from my web application? I need to be able to at least display different message for different failure reason.
Your custom login module will have to make the custom exception available to the web app via some custom mechanism: