We are using a form based authentication and below is the snippet from web.xml
<login-config>
<auth-method> FORM </auth-method>
<form-login-config>
<form-login-page>/login.jsp?fromIndex=true</form-login-page>
<form-error-page>/login.jsp?fromIndex=true&ldapAuth=fail</form-error-page>
</form-login-config>
</login-config>
And i do have a loginfilter that processes the authentication. So if the authentication fails i also want to send a error code to jsp to display error message. Since the HttpRequest is not carried over to the JSP page when authentication fails i cannot send the variable by putting in http request .
is there a alternate way to pass a variable to the login-errore jsp page ?