-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...
context-param
param-nameContextParam1/param-name
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
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);
The ServletContext.getRealPath() call
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