adspace


What is the difference between validation.xml and validator-rules.xml files in struts?

Answer Posted / Nandeshwar Dubey

Validation.xml defines validators that are associated with ActionForm classes, while Validator-rules.xml contains custom validation rules for specific fields. The former file maps validators to forms, while the latter provides rules that can be shared across multiple forms.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is action chaining ?

1168


What is the difference between filters and interceptors ?

1316


What do you know about validation plugin ?

1031


How is declarative handling of exceptions done in struts ?

1010


What are the contents on web.xml in struts application ?

1072