users@glassfish.java.net

RE: Obtaining LoginException

From: Shevland, Joe <joe.shevland_at_capgemini.com>
Date: Mon, 6 Aug 2007 10:16:02 +1000

> The only recommendation I can give you is to not add <%_at_page
> isErrorPage="true"%> to your <form-error-page> resource, and
> to not try to retrieve the pagecontext's error data
> (${pageContext.errorData}) from your <form-error-page> resource.

Thanks Jan,

From my understanding then of all of that, I'm unable to get the
LoginException in the form-error-page when using form-based
authentication and hence unable to provide any better feedback in the
case authentication fails than "Login failed, for some reason".

Would this be feasible to submit as an RFE? I don't see any approach
other than modifying the container code to get at it. I'd like to get at
the message of the exception to give the user some more relevant
feedback.

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.