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



You can use the 'file exists' action or you can probably do the check in flowscript, with something like:

var file = new java.io.File(filename);
if (file.exists()) {
...
}

(I've never tried either though).

HTH, Upayavira

------------------------------------------------------------------------

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




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



Reply via email to