ContactUs

Please send your Questions & Answers or Feedback to "mohan@javabook.org"

What are the steps required for setting up validator framework in Struts?

Following Steps are required to setup validator framework in Struts: –

In WEB-INF directory place valdator-rules.xml and validation.xml files.

Enable validation plugin in struts-config.xml files by adding following:

[xml]

<plug-in className=”org.apache.struts.validator.ValidatorPlugIn”>

<set-property property=”pathnames” value=”/WEB-INF/validator-rules.xml,

/WEB-INF/validation.xml”/>

</plug-in>

[/xml]

Related Posts Plugin for WordPress, Blogger...
Flag Counter