Help coderanch get a
new server
by contributing to the fundraiser
  • 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin


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.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?
Think of how dumb the average person is. Mathematically, half of them are EVEN DUMBER. Smart tiny ad:
We need your help - Coderanch server fundraiser
    Bookmark Topic Watch Topic
  • New Topic