>obviously I did
>though I might sound, but I'm not that dumb to send a question without
>having even chekc out what I could at my end
>ok so this is what i did
>I created a class that extends Thread
>the run method was supposed to write some info to a file (FileOutputStream)
>when I ran the class from a regular class the file was created in the same
>folder where the .java file existed
>however, when I called the start method from a servlet it didn't return any
error
>in fact when I checked isAlive() that return true also
>but I am not able to find the file that it created

You probably should have said this in your first message ;-)

Without the code, it is difficult to answer exactly. I guess that you are
using the default path. The default path is of course not the same when you
call the start method from a servlet. You should probably check what is the
default path with your container. For example, with Tomcat 3.1, the default
path is <TOMCAT_HOME>/bin. But you probably shouldn't be using this.
Instead, get the document root path from your servlet with getRealPath(),
using whatever relative path you need as an argument. Or, use an absolute
path.

Pierre-Yves

___________________________________________________________________________
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