This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread 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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "difference validation ,validator-rules" Watch "difference validation ,validator-rules" New topic
Author

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.


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