2 Replies Latest reply on Jun 7, 2004 11:31 AM by mmarconi

    Custom error messages for <form-error-page>

    mmarconi Newbie

      I've spent hours trying to find a solution to what I imagined was a common problem:

      I have a custom JAAS login module that relies on a database connection. It is possible that this connection is broken when users attempt to authenticate themselves.

      This leads to a forward to the page specified by the <form-error-page> tag. Now, how do I distinguish between a database failure and incorrect authentication data?

      I can't simply tell the user their sign in failed. I must let them know if we are experiencing databse issues or their username/password combo is incorrect!

      Any way to get at those exceptions from the error JSP?

      A thousand blessings to anyone with an answer...
      Michael Marconi.