How to create validations?what are struts validation
components?

Answer Posted / n.ramakrishna goud

We can create two types of validations
1).Manually
2).Automated
we can create manual validation by implementing the
validate method in ActionForm ,DynaActionForm,Validator
or DynaValidatorForm
Also ,
we can use the automated validation like
Integer,email,creditcard etc., by providing the validation
in the following xml files.,
validation.xml
validation_rules.xml

Is This Answer Correct ?    11 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are pull and push mvc architecture and which architecture does struts2 follow?

692


Explain about struts dispatch action?

739


In which method of action class the business logic is executed?

737


How does one create an action in struts 2?

693


Give an alternative way to protect jsp’s with not much features from direct access.

744


Why use struts framework in java?

727


What is the default suffix for Struts2 action URI and how can we change it?

730


For a single Struts application, can we have multiple struts-config.xml files?

775


Explain about tiles?

782


What is the purpose of @requiredstringvalidator?

730


What is struts in java with example?

700


Can we have multiple struts config files in a single web app?

694


What is struts framework in java?

717


How can duplicate form submission be handled in struts 2?

706


Is struts mvc framework?

662