What is the purpose of @customvalidator annotation?



What is the purpose of @customvalidator annotation?..

Answer / Kanishk Kumar Tiwari

The @CustomValidator annotation in Struts allows you to create custom validators for form fields. You can define your own validation logic and associate it with a specific field by adding the @CustomValidator annotation to the field's getter method.nCustom validators provide more flexibility as they allow you to validate data based on complex business rules.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Struts Interview Questions

What design patterns are used in struts?

1 Answers  


what is ForwardAction and IncludeAction in struts?

3 Answers   Mind Tree, Satyam,


What is role of action class?

1 Answers  


What is the difference between shocks and struts?

1 Answers  


What is execute method in struts?

1 Answers  


how does request processor relates to action mapping?

1 Answers  


Why are springs better than struts?

1 Answers  


how handle when client send multiple request at atime for multiple servlets servlets?

3 Answers   IBM,


why servlet is used as controller not JSP?

9 Answers   MCS,


where you use thread in your java project?

1 Answers   Cap Gemini,


When it’s useful to use IncludeAction?

1 Answers  


why do we use logic tag library in struts?

1 Answers   Polaris,


Categories