Such questions like "Where to put ** file so ** can read & write **"
frequently appear on the lists.
I wonder if there would be some universal solution somewhere ?
For example, first, it would be best to read the related
documentation, I think. ( Of course. So it's just nonsense. )
Second, suppose even we don't know exactly where to location
the appropriate directory, then why not try just to
create a simplest file of the same type ( for example, here it is XML )
and then to investigate on earth ( -- on the Disk, in fact -- )
where it has been created ? That is at least a clue, I think.
( Of course, someone may argue that the READ directory
might well be different than the WRITE one.
But that's another thing. )
( Programming is also kind of philosophy, isn't it ? )
Best regards !
----- Original Message -----
From: "Nik DAMPIER" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 19, 2001 10:21 PM
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
Try to code a helper servlet creating a XML file, run it, and find
under which directory it is produced. It is likely you will get it.
> cheers nik
___________________________________________________________________________
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
- Where to put XML file so I can read & write t... Nik DAMPIER
- Re: Where to put XML file so I can read &... Mark Galbreath
- Re: Where to put XML file so I can read ... Gokul Singh
- JDBC and Servlets Juan Antonio Felix
- Re: JDBC and Servlets Claude HONNORE
- Re: JDBC and Servlets Mark Galbreath
- Re: Where to put XML file so I can read &... Zeng, Feng_Hua (CAP,CEF)
- Re: Where to put XML file so I can read &... T.A. Flores
- Re: Where to put XML file so I can read ... Mark Galbreath
