• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

XML, XSL URI

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I am trying to do an XML to HTML transformation using Xalan and Servlets on Tomcat. When I tried the following code:
String XML = "/XMLTest/test.xml";
String XSL = "/XMLTest/test.xsl";
processor=XSLTProcessorFactory.getProcessor();
processor.process(new XSLTInputSource(XML), new XSLTINputSource(XSL), new XSLTResultTarget(out));
I got an error saying that my XML ans XSL files can not be found.
Both of the files are in a folder under webapps, jakarta-tomcat-3.2.1\webapps\XMLTest. The servlet is in \webapps\XMLTest\WEB-INF\classes. Is there a specific place I should put the XML, XSL files so tomcat can find them or I have the wrong URI for my XML,XSL files? Any ideas?
Thanks
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic