RE: Servlets and relative paths

2001-06-04 Thread Viksen Pillay Narrainen
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

RE: Servlets and relative paths

2001-06-04 Thread Jeff Gaer
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

RE: Servlets and relative paths

2001-06-03 Thread Viksen Pillay Narrainen
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

RE: Servlets and relative paths

2001-06-01 Thread Steve Meyfroidt
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 > >

RE: Servlets and relative paths

2001-06-01 Thread Chris McNeilly
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

RE: Servlets and relative paths

2001-06-01 Thread Steve Meyfroidt
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

RE: Servlets and relative paths

2001-06-01 Thread Chris McNeilly
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

RE: Servlets and relative paths

2001-06-01 Thread Cox, Charlie
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

RE: Servlets and relative paths

2001-05-30 Thread Martin van den Bemt
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,

RE: Servlets and relative paths

2001-05-30 Thread Chris McNeilly
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

Re: Servlets and relative paths

2001-05-30 Thread Bo Xu
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

RE: Re: Servlets and relative paths

2001-05-30 Thread Chris McNeilly
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

RE: Servlets and relative paths

2001-05-30 Thread Ronald G. Louzon
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

Re: Servlets and relative paths

2001-05-29 Thread Bo Xu
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

Servlets and relative paths

2001-05-29 Thread Chris McNeilly
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