on 11/8/2000 2:29 PM, "Melder, Randy" <[EMAIL PROTECTED]> wrote:

> I guess this may be a Java development question, but I cannot write to a file
> via a servlet run from JServ. I can on Tomcat w/JBuilder on my local HD...
> 
> Would someone please be kind and enlighten me?

Look at the permissions of the files and directories you are writing to as
well as the place where the JVM is running, chances are that "count.txt" is
being written to a random directory somewhere (generally decided based on
the location where the JVM is started. You can find out the path by doing
something like this (while running it as a servlet):

log(new File("count.txt").getAbsolutePath());

-jon

-- 
http://scarab.tigris.org/    | http://noodle.tigris.org/
http://java.apache.org/      | http://java.apache.org/turbine/
http://www.working-dogs.com/ | http://jakarta.apache.org/velocity/
http://www.collab.net/       | http://www.sourcexchange.com/




------------------------------------------------------------
To subscribe:    [EMAIL PROTECTED]
To unsubscribe:  [EMAIL PROTECTED]
Problems?:       [EMAIL PROTECTED]

Reply via email to