cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mustafa Ali, Halgurt" <Mustafa...@docomolab-euro.com>
Subject AW: AW: AW: AW: File existence
Date Fri, 19 Sep 2003 13:27:59 GMT
You are right, but that was even not the reason, I changed it and am still getting the same
error.

-----Urspr√ľngliche Nachricht-----
Von: Geoff Howard [mailto:cocoon@leverageweb.com] 
Gesendet: Freitag, 19. September 2003 14:08
An: users@cocoon.apache.org
Betreff: Re: AW: AW: AW: File existence

Mustafa Ali, Halgurt wrote:

> Hello,
> 
> I've got it as exists, her ist he content of my exists.js:
> 
> function exists() {
>   var file = new java.io.File(cocoon.parameters["test-uri"]);
>   if (file.exists()) {
>      cocoon.sendPage(cocoon.parameters["exists-uri"];
>   } else {
>      cocoon.sendPage(cocoon.parameters["non-exist-uri"];
>   }
> }
> 
> Have I forgotten anything?

A closing paren at the end of each sendPage call...



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


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


Mime
View raw message