thanks for replying
i didn't make it very clear what the problem was!
i'll explain
i know where the class file is!
the problem is that in order for me to create a FileOutputStream, the servlet
needs to know where it is located.

to open the file, i'm using
settings.load((getClass()).getResourceAsStream("etc/settings.txt"));
where settings is a Properties type hashtable class

i need to save to etc/settings.txt

if i create a normal FileOutputStream, it will save it to where the jre is, so
i need to specify the full output path..
thats what i need to determine - the path of the servlet, so i can modify that
string to point to the settings file

thanks
Rob

hima bindu <[EMAIL PROTECTED]> wrote:
> hi friend,
>
> your class file for the servlet is generated,where you
> compile your source code.after compiling,if your
> program does not report any program or error,then a
> class file is generated in the same location,where you
> are working.
>
> this is the reason,why we explicitly copy the class
> file from its original location,to the servlet runner
> identifiable location or the web server identifiable
> location and set the classpath to it.
>
> anyhow,you were talking something about settings
> file,what is it?,and tell me something about the
> settings file and advantages,and the method to create
> it.
>
>
>             bye..
>
>                                            bindu
>
>
> __________________________________________________
> Do You Yahoo!?
> Get Yahoo! Mail � Free email you can access from anywhere!
> http://mail.yahoo.com/


____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1

___________________________________________________________________________
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
  • Re: [] Yogesh Agarwal
    • Rob Hazlewood

Reply via email to