Sorry for the delay, but with the holiday weekend and all, things got busy.
Here is the core of one of my Struts Form, generated from the EJB using the updated struts_form.xdt that you upadted a month or so ago in response to an earlier inquiry regarding the 'copying' of struts validation tags from the EJB into the generated form to be later processed by the webdoclet strutsvalidationxml sub-task. ----- snippet ----- package com.x.y.z.form; import javax.servlet.http.HttpServletRequest; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionMapping; /** * @struts.form name="loginForm" */ public class LoginForm extends ActionForm { /** String for holding the username */ private String userName = null; /** String for holding the password */ private String password = null; /** String for holding the session challenge */ private String challenge = null; /** Sets the username * * @param userName The username to set */ public void setUserName( String userName ) { this.userName = userName; }// setUserName( userName ) /** Returns the username * * @return The provided username */ public String getUserName () { return userName; }// getUserName() /** Sets the password * * @param password The password provided */ public void setPassword( String password ) { this.password = password; }// setPassword( password ) /** Returns the password * * @return The provided password */ public String getPassword() { return password; }// getPassword() /** Sets the session challenge string * * @param challenge The session challenge string. */ public void setChallenge( String challenge ) { this.challenge = challenge; }// setChallenge( challenge ) /** Returns the session challenge * * @return The session challenge */ public String getChallenge() { return challenge; }// getChallenge() /** Resets the login form to default values (or blank) * * @param mapping Mapping used to select this instance * @param request Servlet request we are processing */ public void reset( ActionMapping mapping, HttpServletRequest request ) { this.userName = null; this.password = null; }// reset( mapping, request ) } ----- snippet ----- Thanks for any help you can give (again) -={ Kyle }=- --- Matt Raible <[EMAIL PROTECTED]> wrote: > Can you post the source of your ActionForm? > > Matt > > On Sep 2, 2004, at 1:48 PM, Kyle Korndoerfer wrote: > > > XDoclet v1.2.1 > > Ant v1.6.1 > > > > I'm trying to use the strutsvalidationxml subtask of webdoclet to > > qutomatically generate the validation.xml file for my forms (some > are > > auto-generated from my EJB's, other a written by hand), but when > the > > task executes, I get the following error... > > > > ... > > [webdoclet] org.xml.sax.SAXParseException: Element "formset" > requires > > additional elements. > > ... > > > > When I look into the generated validation.xml file, it is > essentially > > blank... > > > > --- VALIDATION.XML > > <?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> > > <!-- > > Define global validation config in validation-global.xml > > --> > > <formset> > > </formset> > > </form-validation> > > -- VALIDATION.XML > > > > So, it looks like the strutsvalidationxml tag is not processing, or > for > > some reason finding, my Form classes. > > > > Here is a snippet from my build.xml just in case there is a problem > > there... > > > > --- BUILD.XML > > <webdoclet force="true" > > destdir="${gen.etc.home}" > > mergedir="${meta-data.home}"> > > > > <fileset dir="${src.home}"> > > <!-- standard source files --> > > <include name="**/*Form.java" /> > > <include name="**/*Action.java" /> > > <include name="**/Log4jInit.java" /> > > </fileset> > > <fileset dir="${gen.src.home}"> > > <!-- xdoclet-generated source files --> > > <include name="**/form/*Form.java" /> > > </fileset> > > > > <deploymentdescriptor ... /> > > > > <jbosswebxml ... /> > > > > <strutsconfigxml ... /> > > > > <strutsvalidationxml > > destDir="${gen.etc.home}/WEB-INF/conf" > > validateXML="true" /> > > </webdoclet> > > --- BUILD.XML > > > > Anybody have any ideas? I have been unable to locate the source of > the > > problem for a while now. > > > > Thanks in advance! > > > > -={ Kyle }=- > > > > > > > > > > __________________________________ > > Do you Yahoo!? > > New and Improved Yahoo! Mail - 100MB free storage! > > http://promotions.yahoo.com/new_mail > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by BEA Weblogic Workshop > > FREE Java Enterprise J2EE developer tools! > > Get your free copy of BEA WebLogic Workshop 8.1 today. > > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > > _______________________________________________ > > xdoclet-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > xdoclet-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/xdoclet-user > __________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo ------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user