users@glassfish.java.net

Obtaining LoginException

From: Shevland, Joe <joe.shevland_at_capgemini.com>
Date: Thu, 2 Aug 2007 12:14:41 +1000

From memory (and I think this was under Websphere), when using JSP
form-based login and the authentication fails, I thought you could
access a page variable (or maybe it was a request/session attribute) of
"exception", to get at the LoginException and some details about the
failure.

Is it possible to get at the LoginException in GF when authentication
fails?

As far as I can tell in the Servlet 2.4 spec, this is as much as it
talks about being able to provide feedback to the user as to why the
authentication failed: "The error page sent to a user that is not
authenticated contains information about the failure". If that's all
there is in the spec, its pretty vague to go on when you're implementing
your own error page.

Cheers
Joe

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.