AW: File existence

2003-09-23 Thread Mustafa Ali, Halgurt
You are right, I am sorry; I will try to solve it alone. Regards, Schoene Gruesse, -Ursprüngliche Nachricht- Von: Joerg Heinicke [mailto:[EMAIL PROTECTED] Gesendet: Samstag, 20. September 2003 20:29 An: [EMAIL PROTECTED] Betreff: Re: File existence Sorry for my impatience - but how

Re: AW: File existence

2003-09-23 Thread Joerg Heinicke
Mustafa Ali, Halgurt wrote: You are right, I am sorry; I will try to solve it alone. Regards, Schoene Gruesse, Please don't take it personally. As you can see many people on this list are willing to help. But: you must ask the right questions. Regards, Joerg PS: Where are you situated? I

Re: AW: AW: AW: AW: File existence

2003-09-19 Thread Olivier Billard
: AW: AW: AW: File existence it is *{request-param:ID}* instead of {request-parameter:ID} -- Olivier Billard On 17/09/2003 09:41, Mustafa Ali, Halgurt wrote: Oh it seems no to work, I got an Error, her eis it: Invalid pattern '{request-parameter:ID}' Do you have an idea

Re: File existence

2003-09-19 Thread Olivier Billard
Billard [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 17. September 2003 10:29 An: [EMAIL PROTECTED] Betreff: Re: AW: AW: AW: File existence it is *{request-param:ID}* instead of {request-parameter:ID} -- Olivier Billard On 17/09/2003 09:41, Mustafa Ali, Halgurt wrote: Oh

Re: AW: File existence

2003-09-19 Thread Olivier Billard
An: [EMAIL PROTECTED] Betreff: Re: File existence Hi Halgurt (I'm french and didn't manage to see what is your name and first name, so sorry if i'm wrong), Please check if you *really* didn't wrote {request-parameter:ID} instead of {request-param:ID}, because the error seem to point a mistake

Re: AW: File existence

2003-09-19 Thread Upayavira
: File existence Hi Halgurt (I'm french and didn't manage to see what is your name and first name, so sorry if i'm wrong), Please check if you *really* didn't wrote {request-parameter:ID} instead of {request-param:ID}, because the error seem to point a mistake of this type... see : cause

AW: AW: File existence

2003-09-19 Thread Mustafa Ali, Halgurt
- Von: Upayavira [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 19. September 2003 11:08 An: [EMAIL PROTECTED] Betreff: Re: AW: File existence You seem to be having a lot of trouble with this. Have you considered using flow? With the below, if the file exists, the pattern=exists pipeline will be shown

Re: AW: AW: File existence

2003-09-19 Thread Upayavira
:[EMAIL PROTECTED] Gesendet: Freitag, 19. September 2003 11:08 An: [EMAIL PROTECTED] Betreff: Re: AW: File existence You seem to be having a lot of trouble with this. Have you considered using flow? With the below, if the file exists, the pattern=exists pipeline will be shown, otherwise the pattern

AW: AW: AW: File existence

2003-09-19 Thread Mustafa Ali, Halgurt
]; } } Have I forgotten anything? regards -Ursprüngliche Nachricht- Von: Upayavira [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 19. September 2003 13:08 An: [EMAIL PROTECTED] Betreff: Re: AW: AW: File existence Mustafa Ali, Halgurt wrote: Hello, I did it as you said, but I got this error

Re: AW: AW: AW: File existence

2003-09-19 Thread Upayavira
] Betreff: Re: AW: AW: File existence Mustafa Ali, Halgurt wrote: Hello, I did it as you said, but I got this error message: (Exists is not a function) Note that Javascript is case sensitive. Have you got it as Exists or as exists? Another question, when I call the Pipeline handling

Re: AW: AW: AW: File existence

2003-09-19 Thread Geoff Howard
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 {

AW: AW: AW: AW: File existence

2003-09-19 Thread Mustafa Ali, Halgurt
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:[EMAIL PROTECTED] Gesendet: Freitag, 19. September 2003 14:08 An: [EMAIL PROTECTED] Betreff: Re: AW: AW: AW: File existence Mustafa Ali

AW: AW: AW: File existence

2003-09-17 Thread Mustafa Ali, Halgurt
: Re: AW: AW: File existence Try to pass the value of {request-param:ID} to the stylesheet or debug it in another way and tell us if this works correctly. Joerg Mustafa Ali, Halgurt wrote: But I am using different stylesheets, I made a mistake, I corrected my pipeline and now the Otherwise part

File existence

2003-09-17 Thread Mustafa Ali, Halgurt
Hi, I had a Problem yesterday and asked for help, I try it now again, is the pipeline below correct or not? I am getting an Error: Invalid pattern {request-parameter}:ID² What is a better way to check if a file exists or not? I am getting the file name from a request parameter.

Re: AW: AW: AW: File existence

2003-09-17 Thread Olivier Billard
Nachricht- Von: Joerg Heinicke [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. September 2003 15:11 An: [EMAIL PROTECTED] Betreff: Re: AW: AW: File existence Try to pass the value of {request-param:ID} to the stylesheet or debug it in another way and tell us if this works correctly. Joerg Mustafa

AW: File existence

2003-09-17 Thread Mustafa Ali, Halgurt
2003 10:25 An: [EMAIL PROTECTED] Betreff: Re: File existence Hi Halgurt... Where do you intend to find your file ? In the root of the webapp ? You can try */_map:when test=/{request-param:ID}.xml_/* (add the slash) With this, your file will be searched relatively to the context root

Re: AW: File existence

2003-09-17 Thread Olivier Billard
: File existence Hi Halgurt... Where do you intend to find your file ? In the root of the webapp ? You can try */_map:when test=/{request-param:ID}.xml_/* (add the slash) With this, your file will be searched relatively to the context root of the webapp. see [1]. But if your only have one

AW: AW: File existence

2003-09-17 Thread Mustafa Ali, Halgurt
seeing it worng? Thanks, -Ursprüngliche Nachricht- Von: Olivier Billard [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 17. September 2003 12:20 An: [EMAIL PROTECTED] Betreff: Re: AW: File existence map:pipeline map:match pattern=handling map:act type=resource-exists map:parameter

Re: AW: AW: File existence

2003-09-17 Thread Olivier Billard
] Betreff: Re: AW: File existence map:pipeline map:match pattern=handling map:act type=resource-exists map:parameter name=url value=context://{request-param:ID}.xml/ !-- if resource exists : -- map:generate type=file src=default.xml / map:transform type=xslt src=form2data.xsl

File existence

2003-09-16 Thread Mustafa Ali, Halgurt
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

RE: File existence

2003-09-16 Thread robert_hitchins
:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 8:25 AM To: [EMAIL PROTECTED] Subject: File existence 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

AW: File existence

2003-09-16 Thread Mustafa Ali, Halgurt
Thank you very much, I will try it and let you know whether it works or not. -Ursprüngliche Nachricht- Von: Antonio Gallardo [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. September 2003 13:37 An: [EMAIL PROTECTED] Betreff: Re: File existence Mustafa Ali, Halgurt dijo: Hi, I

Re: File existence

2003-09-16 Thread Antonio Gallardo
Antonio Gallardo dijo: Upayavira dijo: You can use the 'file exists' action or you can probably do the check in flowscript, with something like: Hi: Is this action being deprecated in favor of ResourceExistsSelector? See: http://wiki.cocoondev.org/Wiki.jsp?page=ResourceExistsSelector

Re: AW: File existence

2003-09-16 Thread Antonio Gallardo
-Ursprüngliche Nachricht- Von: Antonio Gallardo [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. September 2003 13:45 An: [EMAIL PROTECTED] Betreff: Re: File existence Antonio Gallardo dijo: Upayavira dijo: You can use the 'file exists' action or you can probably do the check

AW: AW: File existence

2003-09-16 Thread Mustafa Ali, Halgurt
PROTECTED] Gesendet: Dienstag, 16. September 2003 14:56 An: [EMAIL PROTECTED] Betreff: Re: AW: File existence Hi: I never used it. From your pipeline, it looks like your are always generating from the same source no matter if the fileexists or not. map:generate type=file src=default.xml / Then you

Re: AW: AW: File existence

2003-09-16 Thread Joerg Heinicke
if the file exists or not, I think there is an error in the red line. Thanks, Halgurt -Ursprüngliche Nachricht- Von: Antonio Gallardo [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 16. September 2003 14:56 An: [EMAIL PROTECTED] Betreff: Re: AW: File existence Hi: I never used it. From your