Hello Erik,

No, you won't really have write capability...at least not FileIO write
capability.  You might be able to update some resource the same way as
you might update a file in a jar file at runtime, although I haven't
looked into that.

The only place you are guaranteed write access is to the temp
directory provided by the servlet container per the servlet spec.
Assuming anything else is done at your own peril.  If you require
other write access or read access outside the webapp itself, you start
to tie yourself to either a platform or an extra process you will have
to go through to set up the system to guarantee it matches your
assumptions for file read/write access.

Jake

Wednesday, December 11, 2002, 10:00:28 AM, you wrote:



>> -----Original Message-----
>> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, December 10, 2002 8:34 PM
>> To: Tomcat Users List
>> Subject: Re: How to get a "File" for a certain folder 

PE> [...]

>> For maximum portability, you should use the
>> ServletContext.getResourcePaths() method to give you the names of the
>> resources in a particular "directory" of your webapp -- this will work
>> whether or not the container actually runs your app from an unpacked
>> directory.

PE> Does this mean that even if the webapp is run from a packed WAR file, the webapp 
is able to access file resources within that WAR file for *both* read and write 
purposes?


PE> Erik

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



-- 
Best regards,
 Jacob                            mailto:[EMAIL PROTECTED]


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

Reply via email to