hi, I have the following to code to open
the file the user is requesting (in order
to feed it into an xslt processor and return html).
URL xmlSourceUrl = new URL("file:" +
getServletContext().getRealPath(
request.getRequestURI() ) );
Source xmlSource = new StreamSource(
xmlSourceUrl.openStream());
The problem is that it works when my web app is
mapped at "/" but not when it 's mapped at, for example,
"/myapp".
should I be using something else like getResourceAsStream()
or something similar ?
TIA,
Martin
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html