How to carryout the validations in struts if the validator
frame work cant handle the validation

Answer Posted / sitaram

There are two types of validations in Struts.
1.by using validator method in form bean.
2.by using validator.XML file in the struts. that
vlalidators are declared in validator.XML.
The validator frame work handle the validation. he
validation are declaring in validator.xml.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What design patterns are used in struts?

560


What does the term struts mean?

555


State an example of struts configuration file as an action parameter for action servlet.

537


What is role of actionservlet?

567


Which interceptor is responsible for file upload support?

577






What are the cons of struts 2?

571


What is the purpose of @key annotation annotation?

596


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

513


What is the purpose of execute method of action class?

564


What does action do in struts?

534


What is the purpose of @createifnull annotation annotation?

617


What helpers in the form of jsp pages are provided in struts framework?

527


How can we get Servlet API Request, Response, HttpSession etc Objects in action classes?

624


Which interceptor is responsible for mapping request parameters to action class Java Bean properties?

558


If the framework doesn’t do what I want, can I request that a feature be added?

502