Originally posted by Jitesh Sinha:
What is the best place to put your business logic validations?
Best place tu put business logic validation , i think , put in validate() method in ActionForm.
But in my work, I used both validation in ActionForm, and validation in client -side (javascript).
Originally posted by Jitesh Sinha:
And if you put your validate method there,is saveErrors method called by framework itself?
In validate() method of ActionForm, You MUST keep all error in ActionErrors.
If have some errors , you can check and display error in
jsp page (<html:errors/>
SCJA,SCJP,SCWCD,SCBCD,SCEA I
Java Developer, Thailand