This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Struts and the fly likes actionform vs validator form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "actionform vs validator form" Watch "actionform vs validator form" New topic

actionform vs validator form

Alvin chew
Ranch Hand

Joined: Jan 08, 2004
Posts: 834
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

Joined: Oct 18, 2004
Posts: 346
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.
I agree. Here's the link:
subject: actionform vs validator form
It's not a secret anymore!