You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Michael Wentzel <Mi...@aswethink.com> on 2001/02/05 22:22:51 UTC
RE: XML as Servlet Init Params
> I would like to pass an xml string as a parameter to a servlet.
>
> I tried
>
> <init-param>
> <param-name>foo</param-name>
> <param-value>
> <xml>
> <param>
> </param>
> </xml>
> </param-value>
>
> but this does not work.
>
> Any ideas ?
You could try like a previous post in this list discussed
and use a properties file for your parameters instead. Look
at the archive for more info if needed. Basically,
<init-param>
<param-name>p1</param-name>
<param-value>filename.properties</param-value>
</init-param>
And then parse your properties file.
---
Michael Wentzel
Software Developer
<A HREF="http://www.aswethink.com">Software As We Think</A>
<A HREF="mailto:wentzel@aswethink.com">Michael Wentzel</A>