Jason van Zyl wrote:

> I've made a couple of changes now that work like
> the following:
> 
> TurbineResources.getServletConfig();
> TurbineResources.getRealPath();

These are OK with me. Just put a note in the javadoc
for getRealPath that it is container dependent.
 
> My particular requirement is the uploading of files
> into a location in the webapp. So I need to create
> files within the webapp. Rafal, if I can do that
> with the method you outline then I am cool with that,
> but I think providing easy access to the webapp.
 
As per servlet spec, container will place a java.io.File
object int the context attributes that denotes a directory
that is guaranteed to be writable to the application.
I think that you should use that. Can't give you the detailed
name of the attribute right now. I checked that sometime ago
and Tomcat seems to support that.


Rafal

--
Rafal Krzewski
Senior Internet Developer
mailto:[EMAIL PROTECTED]
+48 22 8534830 http://e-point.pl


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to