haritha hari wrote: why we need to use validate method in action form
You do not. I find it useful to do simple validation with XML validation (see if a required field is filled in) and more complex validation in the Java code (make sure a field is in a set of values).
You can also create your own validators to take care of more complex cases.
As i know, we use validate.xml (or any name like validator-user.xml....) to configure the dynamic validator plugin generated validation rules.
Struts supplied validator plugin provides approx 14 validation rules. But moreover if we need our manual validation rules along with validator
plugin supplied validation rules then for this purpose we can write our own logic in action form class validate(--) method.
If you are in no need of your own manually developed validation rules, there is no need of taking the validate(--) method in your action form class.