I am using form based authentication (action=j_acegi_security_check). How can I provide a field validation on user name and password (such as should not be empty) using struts. I do not want to use javascript.
As this is a special action understood only by authenticationProcessingFilter, it will try to authenticate without any validation. I don't want my authenticationProvider being invoked at all if username and password are not validate (not empty, length etc).
I am thinking may be I should provide a new filter with a url mapping to j_acegi_security_check (or by making it j_acegi_security_check.do) and validate these values using struts.
Any thoughts on this?


