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
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