Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

actionform vs validator form

 
Alvin chew
Ranch Hand
Posts: 834
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, can expert here please guide what is the different between actionform and validator form ? when is the usage for both form ? and what is the advantages and disadvantages for both ..

thanks for helping to clear my doubt point
 
Damanjit Kaur
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To me,the advantage of ValidatorForm over ActionForm over seems to be -

In ActionForm you have to write all validation code in validate() but ValidatorForm the validation code which is common to many struts form can be put in a single class and mapped to different forms via validation.xml and validator-rules.xml files settings.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic