This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv 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 REST with Spring (video course) this week in the Spring 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
I agree. Here's the link:
subject: difference validation ,validator-rules
jQuery in Action, 3rd edition