Josh, Try the response I got from Cory Scott, which is a work around that he says worked. I haven't tried it yet. Let me know how it goes.
Regards, Vang > Vang, > > It sounds like you are having the exact same problem as i had. I am > not sure exactly why the version setting is being ignored by the > generator but I found a workaroud that got me through. > > These were my settings: > # xdoclet / struts.xml props > maven.xdoclet.webdoclet.strutsconfigxml.0=true > [EMAIL PROTECTED],@date,@version > maven.xdoclet.webdoclet.strutsconfigxml.0.validateXML=false > maven.xdoclet.webdoclet.strutsconfigxml.0.templateFile=src/resources/templates/struts_config_xml.xdt > maven.xdoclet.webdoclet.strutsconfigxml.0.version=1.2 > maven.xdoclet.webdoclet.strutsconfigxml.0.useIds=true > maven.xdoclet.webdoclet.strutsconfigxml.0.ofType=org.apache.struts.action.Action > maven.xdoclet.webdoclet.strutsconfigxml.0.mergeDir=src/resources/merge/struts/ > maven.xdoclet.webdoclet.strutsconfigxml.0.destDir=src/webapp/WEB-INF/conf/ > > > You will notice the fourth directive: > maven.xdoclet.webdoclet.strutsconfigxml.0.templateFile > > Basically all i did was find the template that I wanted it to use, > made my own copy inside my source tree and then pointed it to it. I > am sorry I cant remember where I found the file exactly (inside one of > the JARs from memory) but I have attached the version I am using. > > I hope all of this helps. > > Regards, > Corey Scott 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: Saturday, 30 July 2005 8:17 AM To: [email protected] Subject: [Xdoclet-user] struts-config DTD version incorrect Below is a question I posted here a few days ago, but nobody responded. I've still not figured out what is wrong and why I can't get Xdoclet to create my validation.xml (I include my original question in case someone can see any relation between the problems), but I have given up trying to figure it out and was content to just use Xdoclet's struts-config.xml capabilities. However now that I have been trying to run my project I am disappointed to discover that this gets stuck at the top of my struts-config.xml <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd"> I got so many sax parser errors from that because struts 1.2.7 requires a more recent version of the dtd (1.2). Hence I can't use xdoclet for a modern version of struts. Deadend. A week with the same problem has left me pretty disolussioned with Xdoclet and as I watch this mailing list I am also disappointed in the community support available. I see far more questions than responses. My previous question generated only questions that were off topic. No doubt other lost souls like myself grasping for some shred of hope. *sigh* Feeling like I'm talking to myself. If only the wiki were up, maybe there is where all the help is hiding. But when I go there I get: Due to excessive spamming, the wiki is currently offline. The XDoclet documentation can be found here, and support is available through the xdoclet-user mailing list. You will need to subscribe to the list before posting, due to the anti-spam filtering. Yea. Can we put the Wiki back up? Doesn't it have a read-only mode? That is preferable to just taking it away completely. On Mon, Jul 25, 2005 at 05:42:16PM -0500, Josh Cronemeyer wrote: > 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 > -- 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_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.
struts_config_xml.xdt
Description: struts_config_xml.xdt
