This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes not generating validation.xml file 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 "not generating validation.xml file" Watch "not generating validation.xml file" New topic
Author

not generating validation.xml file

vijayy reddy
Greenhorn

Joined: May 01, 2011
Posts: 1
hiiiiiiiiii

After creating the Struts projecte, i added MYECLIPES6.0- CAPABILITES.immediatly all files generated under WEBINF including validation-rules.xml file,but validation.xml file not generated.


please help me,how can generate automatically validation.xml file


Thanks & regards
Vijay
StrutsAmit Jain
Greenhorn

Joined: May 01, 2011
Posts: 29
Hi Vijay,

sometimes there is a problem, validation.xml file is not generated but even if it is generated it would only have below lines of code.
-------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE form-validation PUBLIC
"-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.0//EN"
"http://jakarta.apache.org/commons/dtds/validator_1_0.dtd">

<form-validation>

</form-validation>

-------------------------------------------------------------------------------------
so I would suggest just create one validation.xml file manually and then append this code.

Thanks
Amit




 
Consider Paul's rocket mass heater.
 
subject: not generating validation.xml file
 
Similar Threads
what will happen if we import a package twice
Exception while loading the validation.xml in strusts
Resource for xml validation
How to use Validators
validator.xml doubt