• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts validation[Very argent]

 
sudhan reddy
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic