Hi all

I am trying to do a simple string match using jsp or servlet. The problem
arises when my servlet or jsp is unable to locate the XML file that is
parsed and then the string match is done. I get an error message as follows
:

Error: 500
Location: /examples/servlet/students1
Internal Servlet Error:
java.io.FileNotFoundException: http://24.181.167.18:8080/students.xml (The
system cannot find the path specified)        at
java.io.FileInputStream.open(Native Method)

I have a method in the servlet class that tries to get a parse an XML file.
The code for the parsing is as follows:

String uri = "http://24.181.167.18:8080/students.xml";
Parser ps = new Parser(uri);
InputStream is = new FileInputStream(uri);
Document document = ps.readStream(is);
is.close();

I assume that here the error occurs. I have the entire code online (in a
different folder too) if you want to help me. You can look at it at
http://24.181.167.18/kalyan/students1.java and the xml file students.xml is
in the same directory.

I would really appreciate it if some one could help me fix the bug!

Thanks,
Kalyan

_____________________________________________________________________________________
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to