This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts validation[Very argent] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts validation[Very argent]" Watch "Struts validation[Very argent]" New topic
Author

Struts validation[Very argent]

sudhan reddy
Greenhorn

Joined: Apr 07, 2007
Posts: 7
In struts-blank i use to edit the validation.xml file to validate my aplication but in In myEclipse 5.5[IDE] i can't find validation.xml file so where can i insert my validation keys to validate my application....

Its very urgent....

Thank in advance....
Kevin Liu
Greenhorn

Joined: Mar 17, 2007
Posts: 10
You could put the validation.xml file into .../WEB-INF/validation.xml,which is the same directory as the struts-config.xml file,
and in the config file, you should:

<plug-in className="org.apache.struts.validator.ValidatorPlugIn">
<set-property property="pathnames"
value="/WEB-INF/validator-rules.xml,
/WEB-INF/validation.xml" />
</plug-in>
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts validation[Very argent]