This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Getting MEAN with Mongo, Express, Angular, and Node and have Simon Holmes on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts 1: is validator-rules.xml mandatory in every app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 1: is validator-rules.xml mandatory in every app" Watch "Struts 1: is validator-rules.xml mandatory in every app" New topic
Author

Struts 1: is validator-rules.xml mandatory in every app

shanky raja
Greenhorn

Joined: Dec 19, 2011
Posts: 17

Hi All,

Please tell me is validator-rules.xml required even if i am using only 'required' validation and no custom validation in an application ?

Thanks
Raaja Gotluru
Ranch Hand

Joined: Mar 02, 2010
Posts: 115
Hi,

Its better to have validation-rules.xml as you are using the predefined condition "required". The rule "required" is configured in this xml file only.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts 1: is validator-rules.xml mandatory in every app