Howdy, Yes: don't use a FileInputStream. Get the resource from the servlet context (ServletContext#getResourceAsStream).
Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Teja Jo [mailto:[EMAIL PROTECTED] >Sent: Wednesday, December 17, 2003 8:37 AM >To: [EMAIL PROTECTED] >Subject: Please help - FileNotFoundException > >Hello everyone, > >I am parsing a xml file using FileInputStream a file from a servlet.The >file is in the same directory as the servlet.Yet it is giving me a >"FileNotFoundException".Can anyone tell me some solution for this. > >Regards, >Tejashri. > > >--------------------------------- >Do you Yahoo!? >Free Pop-Up Blocker - Get it now This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]