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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
