roe [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 16, 2007 5:52 PM
To: Tomcat Users List
Subject: Re: Embedding XML documents as children of the context-param
element
On 8/16/07, Robert Segal <[EMAIL PROTECTED]> wrote:
> So as an alternative I know the second method will work but was
cu
On 8/16/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote:
>
> The ServletContext.getRealPath() call will fail if the webapp is in an
> unexpanded .war or running on a platform without a normal file system
> (e.g., a mobile phone). Better to use
> ServletContext.getResourceAsStream(), which will
> From: Brian Munroe [mailto:[EMAIL PROTECTED]
> Subject: Re: Embedding XML documents as children of the
> context-param element
>
> ServletContext sc = getServletConfig().getServletContext();
> String myXMLFIlePath = sc.getRealPath("/WEB-INF/myXMLFIle.xml");
Th
On 8/16/07, Robert Segal <[EMAIL PROTECTED]> wrote:
> So as an alternative I know the second method will work but was curious
> if anyone has tried the first method.
>
I doubt the 1st method is valid, since you are basically inventing new
deployment descriptor elements, and I know for sure that E
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Robert,
Robert Segal wrote:
> 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...
>
>
> ContextParam1
>
> A happy element
>
>
I don'