Vang, The DTD is specified, and it says version 1.0. I too was wondering why that parameter seems to have no effect on anything. No matter what I try, I get a v. 1.0 struts config. I am using xdoclet 1.2.3 and the jars and plugins that are distributed with that version of xdoclet. Another thing I have noticed is that if I add the parameter to specify that xdoclet validate the xml against the dtd I get an exception saying that my form bean must specify a parameter (not exact words, I can't remember what the exact error is).
Sorry I'm no help. As for the complex genapp template... I don't know what it is. If it is a better sample than the one distributed with the xdoclet tgz then I would appreciate it if you shared a link to it. I have been frustrated with the lack of documentation and examples available on the web for xdoclet/struts beginners. Consequentlyl I have been working on some to address this need, and as soon as I can figure out my validation problem I'll submit a link here with a request for somebody who knows something about xdoclet to look it over. On Tue, Jul 26, 2005 at 10:01:29AM +1000, Vang Nguyen wrote: > > 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 > -- 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 CONFIDENTIALITY NOTICE: This E-mail and any attachments are confidential. If you are not the intended recipient, you do not have permission to disclose, copy, distribute, or open any attachments. If you have received this E-mail in error, please notify us immediately by returning it to the sender and delete this copy from your system. Thank you. ------------------------------------------------------- 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
