form based authentication exception message

T

tremalnaik

Hi everibody, I'm developing a J2EE application on JBOSS/TOMCAT.
My web.xml file contains

<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/logon/logon.jsp</form-login-page>
<form-error-page>/logon/logonError.jsp?code=LER</form-error-page>
</form-login-config>
</login-config>


When I throw a LoginException in my Custom Login Module, how do I get
the error message displayed on the logonError.jsp ?

I tried adding the 'errorPage' e 'isErrorPage' in the <%@ page %> tag,
with no effect.

I tried with a Valve, but the exception is thrown after the
getNext().invoke() so I can't redirect the user to a custom error page.

I tried adding a header to the response, but this is then lost and is
not passed to the logonError.jsp.

I cannot use cookies.

thanks for any help

TREMALNAIK
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top