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