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
How do
you specify the base path in a installation independent way, I.e. as relative to
the document root. Assuming you install your xsl fragments in
webapps/myapplication/xslfrags/ , can you give an example? Thanks in
advance
Jeff Gaer
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, and
portion, the include still tries to prepend the tomcat/bin directory.
>
> This helps, though.
>
> Thanks,
>
> Chris
>
> > -Original Message-
> > From: Steve Meyfroidt [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, June 01, 2001 9:40 AM
> >
ry.
This helps, 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
ation 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 t
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
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 to
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,
aying that it cannot find file
tomcat/bin/sections.xsl. Which, of course, it cannot, since the file is
located in Meta-Inf/.
Chris
> -Original Message-
> From: Bo Xu [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 30, 2001 10:45 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Se
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
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 serv
Tuesday, May 29, 2001 11:32 AM
To: [EMAIL PROTECTED]
Subject: Servlets and relative paths
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 is
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
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. These are xml
and xsl files
15 matches
Mail list logo