context.getRealPath("/template/nav.xml")

>Can someone shed light on why orion is looking in the root
>folder for the xml and xsl files.Can i change the location.

When calling the XSLTInputSource(String fileName) constructor, a file is
opened using the standard java.io.File class which is relative to the
directory the VM was started from (the orion directory).

To get the filename of a path relative to the web-application context, you
can use context.getRealPath(String filename).

ie: new XSLTInputSource( context.getRealPath("hotel.xml"))

>Also in jsp:include i get error when i include this following code:
><jsp:include page="http://localhost:8080/jsp/espace/hotel.html"
flush="true" />
>while this same code works in java web server.

The <jsp:include> tag can only include pages within the current web-app.
Specifying a full URL implies another app. Use a path relative the the
web-app instead.

-Joe Walnes


Reply via email to