Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Struts and the fly likes XDocLet generated validation-xml is empty! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "XDocLet generated validation-xml is empty!" Watch "XDocLet generated validation-xml is empty!" New topic

XDocLet generated validation-xml is empty!

Jon Baxter

Joined: Dec 03, 2004
Posts: 9
I have my build file generating the struts-config.xml file just fine (it even does the merging). However the XDoclet creates an empty validation.xml


<webdoclet destdir="${}/WEB-INF"
<fileset dir="${}"> <include name="**/*.java"/> </fileset>

<strutsconfigxml validatexml="true"

<strutsvalidationxml />

Java code..

* @struts.form name="testForm"
public class TestForm extends ValidatorForm {

private String lastName = "Bond";

public String getLastName() {
return (this.lastName);
* @struts.validator type= "required" msgkey="error.required" arg0value="Last name"
public void setLastName(String lastName) {
this.lastName = lastName;

Have you tried LearnNowOnline?
subject: XDocLet generated validation-xml is empty!