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-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, andset

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

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 much of a pain. Chris

RE: Servlets and relative paths

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

RE: Servlets and relative paths

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

RE: Servlets and relative paths

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

RE: Servlets and relative paths

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

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

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: Servlets and relative paths

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

RE: Servlets and relative paths

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

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.