Hi everyone,

I am curious about a certain possibility to embed XML as a child of a
context-param value in a servlets web.xml file.  Here is what I a
looking for...

<context-param>
  <param-name>ContextParam1</param-name>
  <param-value>
    <happy>A happy element</happy>
  </param-value>
</context-param>

This doesn't seem to work correctly however I have found using CDATA
tags this does work properly...

<context-param>
  <param-name>ContextParam1</param-name>
  <param-value>
    <![CDATA[<happy>A happy element</happy>]]>
  </param-value>
</context-param>

So as an alternative I know the second method will work but was curious
if anyone has tried the first method.


Robert Segal
Tools Developer
CryptoLogic Inc.
55 St. Clair Ave W., 3rd Floor
Toronto, Ontario
Canada  M4V 2Y7
tel.  + 1.416.545.1455 x5896
fax. + 1.416.545.1454

This message, including any attachments, is confidential and/or
privileged and contains information intended only for the person(s)
named above. Any other distribution, copying or disclosure is strictly
prohibited. If you are not the intended recipient or have received this
message in error, please notify us immediately by reply email and
permanently delete the original transmission from all of your systems
and hard drives, including any attachments, without making a copy.

Reply via email to