There used to be a problem with Struts and DTD validation that would cause it to check the jakarta site for the DTD, and I had a hack in the generator to avoid writing out the DOCTYPE line. But, this was fixed in a later version of Struts so I removed the hack. I think if you upgrade to the latest of all your Struts dependencies the problem will be solved.

The validatexml switch is for build-time validation, not run-time, and the DTD for the build-time validation is built into the XDoclet Struts JAR and works as it should.

Erik


On Apr 2, 2004, at 4:54 AM, Matthew Hegarty wrote:


Hi

I need to prevent the generated Struts validation.xml file from validating itself against the DTD. When generated it contains the line:

<!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";>

I don't want this validation to take place as it can't connect and throws an exception.

My strutsvalidationxml ant task is:

         <strutsvalidationxml
            mergedir="${build.xdoclet.dir}/struts-validation"
            version="1.1"
            validatexml="false"/>

I would presume that this would prevent the validation (this is indicated by the XDoclet documentation), but validation is still attempted. I have also tried the case version 'validateXML'.

Please can you advise on where I am going wrong?
I am using XDoclet 1.2, Ant 1.6.1, JDK 1.4.0_01

thanks
Matt


------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user



------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to