my dog learned polymorphism*
The moose likes Struts and the fly likes validator framework Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "validator framework" Watch "validator framework" New topic
Author

validator framework

Raj chiru
Ranch Hand

Joined: Aug 12, 2008
Posts: 141
Hi...
Anybody please explain to what is difference between validator-rules.xml and validation.xml
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Have you looked in the file(s) to see what they define? And checked the configuration examples?

I mean, the obvious answer is very simple, so I'm assuming you're looking for something beyond that?
Duc Vo
Ranch Hand

Joined: Nov 20, 2008
Posts: 254
raj chiru wrote:Hi...
Anybody please explain to what is difference between validator-rules.xml and validation.xml

validator-rules.xml -> defines what rules are available for validation.
validation.xml -> defines forms to be validated, fields to be validated with rules specified in the validator-rules.xml file.

These files are by convention. If you put the contents in one file, it should still work.


“Everything should be as simple as it is, but not simpler.” Albert Einstein
Raj chiru
Ranch Hand

Joined: Aug 12, 2008
Posts: 141
David Newton wrote:Have you looked in the file(s) to see what they define? And checked the configuration examples?

I mean, the obvious answer is very simple, so I'm assuming you're looking for something beyond that?




Yes, i want to know something beyond that
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

And beyond what the other response said?!
 
wood burning stoves
 
subject: validator framework
 
Similar Threads
Why Struts?
Passing parameters/ attributes to a custom validator
Url not working
Struts
Commons Validator vs SpringFramework Validator