Par Sharma wrote:But client side validation is just what happens in validate method. Server side is through validation.xml, but here you (may) have different validations, hence it is not same as what happens validate method.
Not quite. validation.xml configures the ValidationInterceptor for a particular action. It is invoked as part of the interceptor stack as Struts handles the request. The validate method is invoked on the action after the ValidationInterceptor but before execute(). It is possible to tell Struts to use client-side validation, but it is not performed by default. If it is turned on, it uses the same validation.xml file that the ValidationInterceptor uses.
See the
Standard Validation and
Client Side Validation documentation for more information.