Thanks for the response. I understand that part of passing any URL, but my
problem is, when I deploy the application, the XSLs get deployed under the
httpRoot, and I want to read them without any specific reference to the
deployment area(i.e. webserver, filesystem, etc.). My servlet is reading XSL
.
/Dominic
-Original Message-
From: Dutta, Sumanta [mailto:[EMAIL PROTECTED]
Sent: 22 May 2002 00:15
To: '[EMAIL PROTECTED]'
Subject: RE: Prob. referring XSL over URI (Pls. consider this out of
conte xt p ost)
Thanks for the response. I understand that part of passing any URL, but my
problem
Dutta, Sumanta wrote:
Thanks for the response. I understand that part of passing any URL, but my
problem is, when I deploy the application, the XSLs get deployed under the
httpRoot, and I want to read them without any specific reference to the
deployment area(i.e. webserver, filesystem, etc.). My
I don't know if this is the most efficient way, but this works for me: If
your stylesheet is /xsl/mystylesheet.xsl
String filename =
Thread.currentThread().getContextClassLoader().getResource(/xsl/mystyleshee
t.xsl).getFile();
template =