Hello,

First question:
=========
In one of my first servlets I  want to save Form data in a file in the same
directory as the servlet is running: ...../classes/formdata.txt. When I use
straight forward code to do this I find the file formdata.txt back NOT in
the classes directory but in the directory:
C:\WINNT\Profiles\pruijter\StartMenu\Programs\Apache Tomcat4.0\formdata.txt.
(it took quite some time to find this out!!)
When I test the specific code part for "saving" the file outside the servlet
in a separate Test.class in the same ...../classes directory, the
formdata.txt file DOES appear as expected in the same directory. So the code
is ok.....

Can anybody tell me why the servlet saves the formdata.txt file in a totally
different location, and how can I make the servlet behave "normal".


Second Question:
============
As an extension to question one I do want to save the file in a different
location namely the location of another user on our intranet. He wants to
have this formdata.txt automatically appear in his directory. Is this
possible?


Thanks
-------

Pierre R.






--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to