Thanks. From you comments, I believe I will have to opt out of DTD validation and just rely on Digester to map any attributes thrown in to the bean's properties.
| -----Original Message----- | From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] | Sent: Friday, August 30, 2002 3:41 PM | To: Tomcat Users List | Subject: Re: [OT] DTD Validation -- Server.xml | | | | On Fri, 30 Aug 2002, Jacob Hookom wrote: | | > Date: Fri, 30 Aug 2002 14:20:40 -0500 | > From: Jacob Hookom <[EMAIL PROTECTED]> | > Reply-To: Tomcat Users List <[EMAIL PROTECTED]> | > To: Tomcat Users List <[EMAIL PROTECTED]> | > Subject: [OT] DTD Validation -- Server.xml | > | > For container/realm based definitions in the server.xml, I notice that | > the Attributes are really fly-by-wire as to the implementing object | > [MemoryRealm vs. JDBCRealm]. | > | > If I were to use the Struts Digester and include a DTD for validation, | > would any extra Attribute not specified in the DTD be ignored by: | > | > A: The DTD Validation | | No. Any violation of the list of attributes defined for a particular | element in a DTD causes the validator to throw an exception on your | document. (This, of course, is why there is no such thing as a complete | DTD for server.xml files). | | > B: The Digester itself during parsing | | Yes. This happens already -- if you have extra attributes on your | elements that do not match properties on the underlying object, they are | silently ignored. | | Note that it's really commons-digester now, and in fact Tomcat 4.1 uses | this for parsing server.xml files. | | > | > Best Regards, | > Jacob Hookom | > Comprehensive Computer Science | > University of Wisconsin, Eau Claire | > | | Craig | | | -- | To unsubscribe, e-mail: <mailto:tomcat-user- | [EMAIL PROTECTED]> | For additional commands, e-mail: <mailto:tomcat-user- | [EMAIL PROTECTED]> | | --- | Incoming mail is certified Virus Free. | Checked by AVG anti-virus system (http://www.grisoft.com). | Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002 | --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.381 / Virus Database: 214 - Release Date: 8/2/2002 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>