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



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

Answer / 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

More Struts Interview Questions

Can we have more than one struts-config.xml file for a single struts application?

1 Answers  


What does params interceptor?

1 Answers  


What are the reasons for an error message not being displayed while developing struts application?

1 Answers  


What is difference between interceptors and filters?

1 Answers  


What is difference between actionform and dynaactionform?

1 Answers  


What is the main difference between Mvc1 and Mvc2 Architecture??

7 Answers   IBM, Ness Technologies,


Can you explain struts.properties in struts2?

1 Answers  


What is Struts Flow?

17 Answers   CTS, rsystems,


What is the purpose of @element annotation annotation?

1 Answers  


why do we typecast ActionForm into our plain java bean class in Action class? What is the reason?

4 Answers  


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

0 Answers  


Which design pattern is implemented by Struts2 interceptors?

1 Answers  


Categories