Reading the javadoc for the AbstractProcessingFilter class I found that we can configure redirection to specific pages for a specific AuthenticationException using exceptionMappings property.
So to redirect to a particular page when an account is locked it seems that I should just have to add the following configuration section in my AuthenticationProcessingFilter declaration:
Code:
<property name="exceptionMappings">
<props>
<prop key="org.acegisecurity.LockedException">/myLockedPage.jsp</prop>
</props>
</property>
Tell me if I am wrong.