tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hanasaki <hanas...@hanaden.com>
Subject Re: Read and write inside WEB-INF
Date Sun, 15 Jul 2007 06:12:40 GMT
Confirmed.  A real pain in the bum... I do not let my folks use unpacked
WARs.  There were once a bunch of guys that put custom log files in the
unpacked WAR directory... shame shame.

David Smith wrote:
> Only works for unpacked web applications.  If you attempt getRealPath
> from inside a packed war file it will return null.
> 
> --David
> 
> 
> hanasaki wrote:
>> Hmmm does this work for packed WAR's or only Unpacked... ?
>>
>> Jacob Rhoden wrote:
>>  
>>> Much Appreciated! Thanks.
>>>
>>> Edoardo Panfili wrote:
>>>    
>>>> Jacob Rhoden ha scritto:
>>>>      
>>>>>  what is the correct way to find the location of your WEB-INF
>>>>> directory (or your apps directory for that matter).
>>>>>
>>>>>         
>>>> try with
>>>> String x = this.getServletContext().getRealPath("WEB-INF");
>>>>       
>>> ---------------------------------------------------------------------
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>     
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>   
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message