On Fri, 14 Feb 2003, Lukasz Szelag wrote:

> Date: Fri, 14 Feb 2003 13:57:05 -0500
> From: Lukasz Szelag <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Is server.xml DTD case-sensitive?
>
> Hello,
>
> I have noticed that resource parameters are ignored when declared as follows:
>
>    <Resource name="mail/Session" auth="Container" type="javax.mail.Session"/>
>
>    <ResourceParams name="mail/Session">
>         <Parameter>
>             <Name>mail.smtp.host</Name>
>             <Value>smtp.dsl.net</Value>
>         </Parameter>
>     </ResourceParams>
>
> As opposed to:
>
>    <Resource name="mail/Session" auth="Container" type="javax.mail.Session"/>
>
>     <ResourceParams name="mail/Session">
>         <parameter>
>             <name>mail.smtp.host</name>
>             <value>smtp.dsl.net</value>
>         </parameter>
>     </ResourceParams>
>
> (The effect of the first example is that "mail.smtp.host" is not set and still holds 
>its initial value of "localhost").
>
> Although the "parameter" element in Tomcat docs is written in lowercase
> I thougth that it didn't matter. Does anyone know if this behavior is
> intentional or it is a bug? Looks like it is a bug since there were no
> parsing errors reported by Tomcat.
>

The best thing to do with pretty much all of Java is to assume that
everything is case sensitive unless explicitly told otherwise.  That
includes the names of elements in server.xml and web.xml files.

> Lukasz Szelag
>

Craig


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to