Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XDocLet generated validation-xml is empty!

 
Jon Baxter
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
file.

Snippet...

<webdoclet destdir="${project.build}/WEB-INF"
force="true"
mergedir="${project.java.conf}/struts/merge">
<fileset dir="${project.java.src}"> <include name="**/*.java"/> </fileset>

<strutsconfigxml validatexml="true"
version="1.1"
mergedir="${project.java.conf}/struts/merge"
/>

<strutsvalidationxml />
</webdoclet>


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;
}

}
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic