I'm developing web application on spring where authentication is made with Spring Security 3 and LDAP.
This is a form-login snippet from my code:
<security:form-login
    authentication-failure-url="/index.xhtml?error=true"
    default-target-url="/SomeDefaultUrl.xhtml"
    login-page="/index.xhtml" />
When authentication fails my application is redirected to "/index.xhtml?error=true" url. The problem is that I don't know how to catch "error" variable and show some authentication failure message in index.xhtml file. I'm not using Spring mvc.
The second problem is that changing of authentication-failure-url doesn't work.
<security:form-login
    authentication-failure-url="/error.xhtml"
    default-target-url="/SomeDefaultUrl.xhtml"
    login-page="/index.xhtml" />
I changed authentication-failure-url, but despite of this change, it still redirects to index.xhtml file without any variables.
How can I solve this problem?
 
     
     
     
     
     
    