Your classes do not go in the ../servlets directory; they go in
../WEB-INF/classes.  Unless you have modified the web-xml file to
indicate differently.

Cheers!
Mark

----- Original Message -----
From: "Nik DAMPIER" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 19, 2001 9:21 AM
Subject: Where to put XML file so I can read & write to it from
the servlet?


> Can anyone help,
>
> I am trying to develop an web application for my uni project,
and I am have
> a slight problem. I have downloaded jswdk-1.0.1 and I'm trying
to intergrate
> my application into the examples folder, so I've put my servlet
in the
> example/WEB-INF/servlets folder along with the classes that it
uses, like
> account.class.
> One of the methods of this class is to load in an xml document
accounts.xml
> and using the DOM adds an account to the XML file and the saves
it back to
> the accounts.xml.
> But at the moment I keep getting an error because the class
account cannot
> locate the accounts.xml file can any one tell me why??
> I currently have the accounts.xml file in the folder
examples/WEB-INF/ is it
> in the wrong place
> cheers nik
>
_________________________________________________________________
________
> Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.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
>

___________________________________________________________________________
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