This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes difference validation ,validator-rules Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "difference validation ,validator-rules" Watch "difference validation ,validator-rules" New topic

difference validation ,validator-rules

rex tony
Ranch Hand

Joined: Aug 29, 2007
Posts: 159
what is the difference between validation.xml,validator-rules.xml?
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
The validator-rules.xml file is provided by Struts and contains the definitions for the "out of the box" validation rules.

The validation.xml file is unique to your application, which means that you have to create it. It contains <form> and <field> elements defining the specific validations for your application. For examples, see the struts-examples-1.3.x.war and struts-blank-1.3.x.war files that come with the download.

Consultant, Sima Solutions
It is sorta covered in the JavaRanch Style Guide.
subject: difference validation ,validator-rules