cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Billard <obill...@rennes.jouve.fr>
Subject Re: File existence
Date Tue, 16 Sep 2003 12:29:55 GMT
Hi Mustafa,

Try the ResourceExistsAction 
(http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/acting/ResourceExistsAction.html)

<map:act type="resource-exists">
     <map:parameter name="url" value="context://data/{request-param:ir}.xml"/>

     <!-- code if resource exists -->
</map:act>
<!-- code if resource doesn't exist -->

--
Olivier BILLARD


On 16/09/2003 14:24, Mustafa Ali, Halgurt wrote:
> Hi,
> 
>  
> 
> I have an application and I need to check whether a file exists or not, 
> I am getting a request-parameter value and I want to create a file with 
> this value as a file name, but first I want to check if this file 
> already exists or not, can anybody help me? Is there any possibility to 
> check that in a style sheet?
> 
>  
> 
> Best thank,
> 
>  Halgurt



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message