File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "XDocLet generated validation-xml is empty!" Watch "XDocLet generated validation-xml is empty!" New topic
Author

XDocLet generated validation-xml is empty!

Jon Baxter
Greenhorn

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

}
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XDocLet generated validation-xml is empty!
 
Similar Threads
Xdoclet infinite loop
web.xml missing servlet information in web.xml file
web.xml missing servlet information
webdoclet task not working
Xdoclet doesnot capture tags in tld file