[jdom-interest] help in jdom using jsp

Dominik Hasek DHasek1 at excite.com
Wed Jan 24 02:30:25 PST 2001


Looks like your servlet/Jsp engine hasn't his root path configured to point
were the tree.xml is.

or you can try to put full path

Document doc = dom.build (new File ("c:/myfullpath/tree.xml"));

- dh -

On Wed, 24 Jan 2001 11:28:28 +0200, Sebouh wrote:

>  
>  hello guys i have this jsp file which i like to load an XML file, so that
i
>  can manipulate later.
>  i'm using jdom classes to do so. i have a java class that works
perfectly,
>  but i can't run it in jsp.
>  (i'm using Jaguar CTS)
>  my jsp file and the xml file are in the same directory, when i load this
>  page it gives
>  
>  500 Servlet jspservlet: unable to service request: tree.xml: tree.xml
>  Server:Jaguar Server Version 3.6 Connection:Keep-Alive
>  
>  <HTML>
>  <BODY>
>  <%@ page
> 
import="java.io.*,java.util.*,org.jdom.*,org.jdom.input.*,org.jdom.output.*"
>  %>
>  
>  <%
>  DOMBuilder dom = new DOMBuilder();
>  Document doc = dom.build (new File ("tree.xml"));
>  %>
>  
>  </BODY>
>  </HTML>
>  
>  
>  _______________________________________________
>  To control your jdom-interest membership:
> 
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com





_______________________________________________________
Send a cool gift with your E-Card
http://www.bluemountain.com/giftcenter/





More information about the jdom-interest mailing list