Hi Josh, I was wondering if the DTD version is specified int the doctype on the top of your struts config file. I tried using maven.xdoclet.webdoclet.strutsconfigxml.0.version=1.2 like you, but it says DTS version 1.0. If your struts config is working what version of xdoclet and the web module are you using? Did you generate your project using the complex genapp template?
Regards, Vang Nguyen Enterprise Application Programmer Department of Emergency Services (61-7) 3247 8586 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Josh Cronemeyer Sent: Tuesday, 26 July 2005 8:42 AM To: [email protected] Subject: [Xdoclet-user] validation.xml not generating correctly Hi, I've been getting up to speed on Xdoclet recently, but I have come across a problem that I can't crack. My validation.xml is getting generated, and my merge files are getting merged into it, but the validation rules from my forms are not being created there. The form and its properties show up in the generated struts-config.xml, but validation tags are ignored. What follows are some pertinent configuration details. Any help would be much appreciated!!! ---project.properties file--- # set up xdoclet to process this subset of files maven.xdoclet.webdoclet.fileset.0=true maven.xdoclet.webdoclet.fileset.0.include=**/*.java # Generate a struts validation descriptor maven.xdoclet.webdoclet.strutsvalidationxml.0=true maven.xdoclet.webdoclet.strutsvalidationxml.0.destDir=${basedir}/target/${pom.artifactId}/WEB-INF maven.xdoclet.webdoclet.strutsvalidationxml.0.subTaskName=Generating struts-validation.xml maven.xdoclet.webdoclet.strutsvalidationxml.0.mergeDir=${basedir}/merge maven.xdoclet.webdoclet.strutsvalidationxml.0.version=1.1.3 # Generate a struts config descriptor pulling in extra data from # metadata/struts maven.xdoclet.webdoclet.strutsconfigxml.0=true maven.xdoclet.webdoclet.strutsconfigxml.0.version=1.2 maven.xdoclet.webdoclet.strutsconfigxml.0.destDir=${basedir}/target/${pom.artifactId}/WEB-INF maven.xdoclet.webdoclet.strutsconfigxml.0.subTaskName=Generating struts-config.xml maven.xdoclet.webdoclet.strutsconfigxml.0.mergeDir=${basedir}/merge --- POJO form class --- /** * @struts.dynaform name="loginForm" * type="org.apache.struts.validator.DynaValidatorActionForm" * validate="true" */ public class LoginForm { String certLevel; /** * @struts.dynaform-field */ public String getCertLevel() { return certLevel; } /** * @struts.validator type="required" * @struts.validator-args arg0resource="login.certLevel" */ public void setCertLevel(String certLevel) { this.certLevel = certLevel; } } -- Josh Cronemeyer Information Network of Kansas "I don't understand," said the scientist, "why you lemmings all rush down to the sea and drown yourselves." "How curious," said the lemming. "The one thing I don't understand is why you human beings don't." >From Interview With a Lemming, by James Thurber ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ xdoclet-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xdoclet-user This correspondence is for the named persons only. It may contain confidential or privileged information or both. No confidentiality or privilege is waived or lost by any mis transmission. If you receive this correspondence in error please delete it from your system immediately and notify the sender. You must not disclose, copy or relay on any part of this correspondence, if you are not the intended recipient. Any opinions expressed in this message are those of the individual sender except where the sender expressly, and with the authority, states them to be the opinions of the Department of Emergency Services, Queensland. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ xdoclet-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
