Title: RE: Servlets and relative paths
Hi,
here is how I get the document root
in the init method of my servlet, "index.html"being the first page of my
application, I know it shall always be at the root context of my web
application. I then use this document root to ini
Title: RE: Servlets and relative paths
Hi,
take a look at the URIResolver interface and at the method setURIResolver of
TransformerFactory, both in package javax.xml.transform.
What I
did was to create my own implementation of the URIResolver, initialize it with
correct parameters, andset
Title: RE: Servlets and relative paths
What I had to do was put the xsl files in the root directory for my webapp where I could make the href the full url (http://localhost/webapp/sections.xsl) This was the only way I could get it to work correctly. Obviously this exposes your stylesheet
Title: RE: Servlets and relative paths
That's
eventually what I did. I now have two top xsl pages, one includes with
fully qualified urls and the other uses the relative includes. One for the
xsl designer and the other for testing/prod. It's not ideal, but isn't too
much of a pain.
Chris
for xsl
includes. See the xalan javadoc.
Hope that helps.
SteveM
-Original Message-
From: Chris McNeilly [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 01, 2001 2:18 PM
To: [EMAIL PROTECTED]
Subject: RE: Servlets and relative paths
That's eventually what I did. I now have two top xsl
, though.
Thanks,
Chris
-Original Message-
From: Steve Meyfroidt [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 01, 2001 9:40 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Servlets and relative paths
Set the SystemID for xsl includes: this line is part of the
setup for some
SAX-driven XSL
? Are URL
resolvers created by a factory somewhere? Is there a xalan resolver... I bet
there is somewhere.
SteveM
-Original Message-
From: Chris McNeilly [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 01, 2001 3:41 PM
To: [EMAIL PROTECTED]
Subject: RE: Servlets and relative paths
I found this in the archives (http://marc.theaimsgroup.com ). You might
search them for more info if this doesn't work. If you put the file in your
servlet's classpath, this code, which in this case is accessing a properties
file, should allow you to access the file.
-
Thanks Bo. This is certainly a step in the right direction.
I can now include the xml file and xsl file using relative paths. My
only problem now is that there are xsl includes inside the xsl files and
they are still being loaded incorrectly (using the tomcat/bin directory
as root, not the
Chris McNeilly wrote:
Thanks Bo. This is certainly a step in the right direction.
I can now include the xml file and xsl file using relative paths. My
only problem now is that there are xsl includes inside the xsl files and
they are still being loaded incorrectly (using the tomcat/bin
: Servlets and relative paths
Chris McNeilly wrote:
Thanks Bo. This is certainly a step in the right direction.
I can now include the xml file and xsl file using relative
paths. My
only problem now is that there are xsl includes inside the
xsl files and
they are still being loaded
PROTECTED]'
Subject: RE: Servlets and relative paths
I found this in the archives (http://marc.theaimsgroup.com ). You might
search them for more info if this doesn't work. If you put the
file in your
servlet's classpath, this code, which in this case is accessing a
properties
file, should allow
Chris McNeilly wrote:
I've got a servlet and am trying to open files. The problem is that its
defaulting to the tomcat/bin directory whenever I attempt to refer to
them. How can I change this? Hardcoding the path isn't such a good
idea as my dev environment is different from production.
13 matches
Mail list logo