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 guessed you are in Germany because I know 
only German Outlook that adds 'AW'.

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


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 many mails were sent already on this 
topic? And it's always the same, no progress to see. Is it so difficult 
to do a bit of debugging to find out exactly what's wrong? Have a look 
into the log files for exact stack traces, do remote debugging or what 
ever. It can't be so difficult!

And from my personal point of view I wouldn't suggest to use the flow 
variant (sorry Upayavira), this one is too much error prone for such a 
simple task. I suggest going back to the ResourceExistAction, but this 
is of course up to you. Less to write => less errors to do. Try it with 
hard coded file name instead of {request-param:ID} first, do the next 
step later after you see the simple form works.

Joerg


-
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]



AW: AW: AW: AW: File existence

2003-09-19 Thread Mustafa Ali, Halgurt
This error:

Exists is not a function.

Here is my code in the sitemap:


 
 


  






 
 
  
  
  
  
   
   

  
  
  

  
  
   
   
   
   

   
   
   


-Ursprüngliche Nachricht-
Von: Upayavira [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 19. September 2003 14:03
An: [EMAIL PROTECTED]
Betreff: Re: AW: AW: AW: File existence

What error are you getting? Can you show me the code you put into your 
sitemap?

Regards, Upayavira
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?
>
>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 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, I don't have just ID as 
>>parameter, even more, how can I pass these parameters to the non-exists pipeline? 
>>
>>
>>
>You should be able to get at the request parameter inside the non-exists 
>pipeline just as in any other, e.g. with value="{request-param:id}.xml"/>
>
>Regards, Upayavira
>
>  
>
>>Here is my pipelines:
>>
>>
>> 
>> 
>>
>>
>>  
>>
>>
>>
>>    
>>
>>
>> 
>> 
>>  
>>  
>>  
>>  
>>   
>>   
>>
>>  
>>  
>>  
>>
>>  
>>  
>>   
>>   
>>   
>>   
>>  
>>   
>>   
>>   
>>
>>
>>-Ursprüngliche Nachricht-
>>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, otherwise the pattern="non-existent" pipeline 
>>will be shown.
>>
>>
>> 
>>  
>>   
>>   
>> 
>>
>>
>>
>> whatever
>>
>>
>>
>> whatever
>>
>>
>>In your sitemap, just before the  element:
>> 
>>   
>> 
>>
>>Create a file called flow/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"];
>> }
>>}
>>
>>HTH. Regards, Upayavira
>>
>>Mustafa Ali, Halgurt wrote:
>>
>> 
>>
>>
>>
>>>Oh, you are right, I changed it, but the pipeline still choose the second part, no 
>>>matter whether the file exists or not, it ignores the ... part, do you 
>>>have an Idea what is perhaps wrong?
>>>
>>>Thanks,
>>>Halgurt
>>>PS: I am a Kurd and my first name is Halgurt, we don't have surnames, Mustafa is my 
>>>father and Ali my Grandfather.
>>>
>>>-Ursprüngliche Nachricht-
>>>Von: Olivier Billard [mailto:[EMAIL PROTECTED] 
>>>Gesendet: Freitag, 19. September 2003 10:02
>>>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 of this type...
>>>see :
>>>cause: org.apache.avalon.framework.component.ComponentException: *input-modules*: 
>>>ComponentSelector could not find the component for hint [*request-parameter*] (key 
>>>[*request-parameter*])
>>>
>>>->

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


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



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 {
 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]


Re: AW: AW: AW: File existence

2003-09-19 Thread Upayavira
What error are you getting? Can you show me the code you put into your 
sitemap?

Regards, Upayavira
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?

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 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, I don't have just ID as parameter, even more, how can I pass these parameters to the non-exists pipeline? 

   

You should be able to get at the request parameter inside the non-exists 
pipeline just as in any other, e.g. with 

Regards, Upayavira

 

Here is my pipelines:






 
   
   
   
   
   
   


 
 
 
 
  
  

 
 
 

 
 
  
  
  
  

  
  
  

-Ursprüngliche Nachricht-
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, otherwise the pattern="non-existent" pipeline 
will be shown.



 
  
  



whatever


whatever

In your sitemap, just before the  element:

  

Create a file called flow/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"];
}
}
HTH. Regards, Upayavira

Mustafa Ali, Halgurt wrote:



   

Oh, you are right, I changed it, but the pipeline still choose the second part, no matter whether the file exists or not, it ignores the ... part, do you have an Idea what is perhaps wrong?

Thanks,
Halgurt
PS: I am a Kurd and my first name is Halgurt, we don't have surnames, Mustafa is my 
father and Ali my Grandfather.
-Ursprüngliche Nachricht-
Von: Olivier Billard [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 19. September 2003 10:02
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 of this type...
see :
cause: org.apache.avalon.framework.component.ComponentException: *input-modules*: 
ComponentSelector could not find the component for hint [*request-parameter*] (key 
[*request-parameter*])

-> this should be request-param...

--
Olivier
On 19/09/2003 10:30, Mustafa Ali, Halgurt wrote:



  

 

Sure, here is it:

 



   





  

 

cause: org.apache.avalon.framework.component.ComponentException: input-modules: ComponentSelector could not find the component for hint [request-parameter] (key [request-parameter])



-Ursprüngliche Nachricht-
Von: Olivier Billard [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 19. September 2003 09:19
An: [EMAIL PROTECTED]
Betreff: Re: AW: AW: AW: AW: File existence

Can you send the exact error and the stack trace you got ?
 



   

  

 

-
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]


   



-
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]
 



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


AW: AW: AW: File existence

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

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 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, I don't have just ID as 
>parameter, even more, how can I pass these parameters to the non-exists pipeline? 
>
You should be able to get at the request parameter inside the non-exists 
pipeline just as in any other, e.g. with 

Regards, Upayavira

>Here is my pipelines:
>
>
>  
>  
> 
> 
>   
> 
> 
> 
> 
> 
> 
>  
>  
>   
>   
>   
>   
>
>
>
>   
>   
>   
>
>   
>   
>
>
>
>
>   
>
>    
>
>
>
>-Ursprüngliche Nachricht-
>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, otherwise the pattern="non-existent" pipeline 
>will be shown.
>
>
>  
>   
>
>
>  
>
>
>
>  whatever
>
>
>
>  whatever
>
>
>In your sitemap, just before the  element:
>  
>
>  
>
>Create a file called flow/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"];
>  }
>}
>
>HTH. Regards, Upayavira
>
>Mustafa Ali, Halgurt wrote:
>
>  
>
>>Oh, you are right, I changed it, but the pipeline still choose the second part, no 
>>matter whether the file exists or not, it ignores the ... part, do you 
>>have an Idea what is perhaps wrong?
>>
>>Thanks,
>>Halgurt
>>PS: I am a Kurd and my first name is Halgurt, we don't have surnames, Mustafa is my 
>>father and Ali my Grandfather.
>>
>>-Ursprüngliche Nachricht-
>>Von: Olivier Billard [mailto:[EMAIL PROTECTED] 
>>Gesendet: Freitag, 19. September 2003 10:02
>>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 of this type...
>>see :
>>cause: org.apache.avalon.framework.component.ComponentException: *input-modules*: 
>>ComponentSelector could not find the component for hint [*request-parameter*] (key 
>>[*request-parameter*])
>>
>>-> this should be request-param...
>>
>>--
>>Olivier
>>
>>
>>On 19/09/2003 10:30, Mustafa Ali, Halgurt wrote:
>>
>> 
>>
>>
>>
>>>Sure, here is it:
>>>
>>>   
>>>
>>>  
>>>
>>
>>
>> 
>>
>>
>>
>>>cause: org.apache.avalon.framework.component.ComponentException: input-modules: 
>>>ComponentSelector could not find the component for hint [request-parameter] (key 
>>>[request-parameter])
>>>
>>>
>>>
>>>-Ursprüngliche Nachricht-
>>>Von: Olivier Billard [mailto:[EMAIL PROTECTED] 
>>>Gesendet: Freitag, 19. September 2003 09:19
>>>An: [EMAIL PROTECTED]
>>>Betreff: Re: AW: AW: AW: AW: File existence
>>>
>>>Can you send the exact error and the stack trace you got ?
>>>   
>>>
>>>  
>>>
>> 
>>
>>
>>
>
>
>
>-
>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]
>
>
>  
>



-
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]



Re: AW: AW: File existence

2003-09-19 Thread Upayavira
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, I don't have just ID as parameter, even more, how can I pass these parameters to the non-exists pipeline? 

You should be able to get at the request parameter inside the non-exists 
pipeline just as in any other, e.g. with 

Regards, Upayavira

Here is my pipelines:


 
 


  






 
 
  
  
  
  
   
   

  
  
  

  
  
   
   
   
   

   
   
   

-Ursprüngliche Nachricht-
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, otherwise the pattern="non-existent" pipeline 
will be shown.


 
  
   
   
 


 whatever


 whatever

In your sitemap, just before the  element:
 
   
 
Create a file called flow/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"];
 }
}
HTH. Regards, Upayavira

Mustafa Ali, Halgurt wrote:

 

Oh, you are right, I changed it, but the pipeline still choose the second part, no matter whether the file exists or not, it ignores the ... part, do you have an Idea what is perhaps wrong?

Thanks,
Halgurt
PS: I am a Kurd and my first name is Halgurt, we don't have surnames, Mustafa is my 
father and Ali my Grandfather.
-Ursprüngliche Nachricht-
Von: Olivier Billard [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 19. September 2003 10:02
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 of this type...
see :
cause: org.apache.avalon.framework.component.ComponentException: *input-modules*: 
ComponentSelector could not find the component for hint [*request-parameter*] (key 
[*request-parameter*])

-> this should be request-param...

--
Olivier
On 19/09/2003 10:30, Mustafa Ali, Halgurt wrote:



   

Sure, here is it:

  

 





   

cause: org.apache.avalon.framework.component.ComponentException: input-modules: ComponentSelector could not find the component for hint [request-parameter] (key [request-parameter])



-Ursprüngliche Nachricht-
Von: Olivier Billard [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 19. September 2003 09:19
An: [EMAIL PROTECTED]
Betreff: Re: AW: AW: AW: AW: File existence

Can you send the exact error and the stack trace you got ?
  

 



   



-
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]
 



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


AW: AW: File existence

2003-09-19 Thread Mustafa Ali, Halgurt
Hello,

I did it as you said, but I got this error message:

(Exists is not a function)

Another question, when I call the Pipeline handling, I don't have just ID as 
parameter, even more, how can I pass these parameters to the non-exists pipeline? 
Here is my pipelines:


  
  
 
 
   
 
 
 
 
 
 
  
  
   
   
   
   



   
   
   

   
   










-Ursprüngliche Nachricht-
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, otherwise the pattern="non-existent" pipeline 
will be shown.


  
   


  



  whatever



  whatever


In your sitemap, just before the  element:
  

  

Create a file called flow/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"];
  }
}

HTH. Regards, Upayavira

Mustafa Ali, Halgurt wrote:

>Oh, you are right, I changed it, but the pipeline still choose the second part, no 
>matter whether the file exists or not, it ignores the ... part, do you 
>have an Idea what is perhaps wrong?
>
>Thanks,
>Halgurt
>PS: I am a Kurd and my first name is Halgurt, we don't have surnames, Mustafa is my 
>father and Ali my Grandfather.
>
>-Ursprüngliche Nachricht-
>Von: Olivier Billard [mailto:[EMAIL PROTECTED] 
>Gesendet: Freitag, 19. September 2003 10:02
>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 of this type...
>see :
>cause: org.apache.avalon.framework.component.ComponentException: *input-modules*: 
>ComponentSelector could not find the component for hint [*request-parameter*] (key 
>[*request-parameter*])
>
>-> this should be request-param...
>
>--
>Olivier
>
>
>On 19/09/2003 10:30, Mustafa Ali, Halgurt wrote:
>
>  
>
>>Sure, here is it:
>>
>>
>>
>
>
>
>  
>
>>cause: org.apache.avalon.framework.component.ComponentException: input-modules: 
>>ComponentSelector could not find the component for hint [request-parameter] (key 
>>[request-parameter])
>>
>>
>>
>>-Ursprüngliche Nachricht-
>>Von: Olivier Billard [mailto:[EMAIL PROTECTED] 
>>Gesendet: Freitag, 19. September 2003 09:19
>>An: [EMAIL PROTECTED]
>>Betreff: Re: AW: AW: AW: AW: File existence
>>
>>Can you send the exact error and the stack trace you got ?
>>
>>
>
>  
>



-
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]



AW: AW: File existence

2003-09-19 Thread Mustafa Ali, Halgurt
I tested these possibilities:

First with context://
Then without
Then like that: /{request-param:ID}.xml

I tried the ResourceExistsSelector and the ResourceExistsAction as they are described 
in the Wiki documentation. I don't what am I doing wrong, is there another way to 
realize what I want?

Thanks,
Halgurt



-Ursprüngliche Nachricht-
Von: Olivier Billard [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 19. September 2003 11:04
An: [EMAIL PROTECTED]
Betreff: Re: AW: File existence

Hi Halgurt,

Have you tried without the "context://" in the url parameter of the action ?



On 19/09/2003 11:13, Mustafa Ali, Halgurt wrote:

> Oh, you are right, I changed it, but the pipeline still choose the second part, no 
> matter whether the file exists or not, it ignores the ... part, do you 
> have an Idea what is perhaps wrong?
> 
> Thanks,
> Halgurt
> PS: I am a Kurd and my first name is Halgurt, we don't have surnames, Mustafa is my 
> father and Ali my Grandfather.
> 
> -Ursprüngliche Nachricht-
> Von: Olivier Billard [mailto:[EMAIL PROTECTED] 
> Gesendet: Freitag, 19. September 2003 10:02
> 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 of this type...
> see :
> cause: org.apache.avalon.framework.component.ComponentException: *input-modules*: 
> ComponentSelector could not find the component for hint [*request-parameter*] (key 
> [*request-parameter*])
> 
> -> this should be request-param...
> 
> --
> Olivier
> 
> 
> On 19/09/2003 10:30, Mustafa Ali, Halgurt wrote:
> 
> 
>>Sure, here is it:
>>
> 
> 
> 
> 
>>cause: org.apache.avalon.framework.component.ComponentException: input-modules: 
>>ComponentSelector could not find the component for hint [request-parameter] (key 
>>[request-parameter])
>>
>>
>>
>>-Ursprüngliche Nachricht-
>>Von: Olivier Billard [mailto:[EMAIL PROTECTED] 
>>Gesendet: Freitag, 19. September 2003 09:19
>>An: [EMAIL PROTECTED]
>>Betreff: Re: AW: AW: AW: AW: File existence
>>
>>Can you send the exact error and the stack trace you got ?
> 
> 

-- 

-- 
Olivier BILLARD



-
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]



Re: AW: File existence

2003-09-19 Thread Upayavira
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="non-existent" pipeline 
will be shown.


 
  
   
   
 


 whatever


 whatever

In your sitemap, just before the  element:
 
   
 
Create a file called flow/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"];
 }
}
HTH. Regards, Upayavira

Mustafa Ali, Halgurt wrote:

Oh, you are right, I changed it, but the pipeline still choose the second part, no matter whether the file exists or not, it ignores the ... part, do you have an Idea what is perhaps wrong?

Thanks,
Halgurt
PS: I am a Kurd and my first name is Halgurt, we don't have surnames, Mustafa is my 
father and Ali my Grandfather.
-Ursprüngliche Nachricht-
Von: Olivier Billard [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 19. September 2003 10:02
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 of this type...
see :
cause: org.apache.avalon.framework.component.ComponentException: *input-modules*: 
ComponentSelector could not find the component for hint [*request-parameter*] (key 
[*request-parameter*])

-> this should be request-param...

--
Olivier
On 19/09/2003 10:30, Mustafa Ali, Halgurt wrote:

 

Sure, here is it:

   



 

cause: org.apache.avalon.framework.component.ComponentException: input-modules: ComponentSelector could not find the component for hint [request-parameter] (key [request-parameter])



-Ursprüngliche Nachricht-
Von: Olivier Billard [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 19. September 2003 09:19
An: [EMAIL PROTECTED]
Betreff: Re: AW: AW: AW: AW: File existence

Can you send the exact error and the stack trace you got ?
   

 



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


Re: AW: File existence

2003-09-19 Thread Olivier Billard
Hi Halgurt,

Have you tried without the "context://" in the url parameter of the action ?



On 19/09/2003 11:13, Mustafa Ali, Halgurt wrote:

Oh, you are right, I changed it, but the pipeline still choose the second part, no matter whether the file exists or not, it ignores the ... part, do you have an Idea what is perhaps wrong?

Thanks,
Halgurt
PS: I am a Kurd and my first name is Halgurt, we don't have surnames, Mustafa is my 
father and Ali my Grandfather.
-Ursprüngliche Nachricht-
Von: Olivier Billard [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 19. September 2003 10:02
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 of this type...
see :
cause: org.apache.avalon.framework.component.ComponentException: *input-modules*: 
ComponentSelector could not find the component for hint [*request-parameter*] (key 
[*request-parameter*])

-> this should be request-param...

--
Olivier
On 19/09/2003 10:30, Mustafa Ali, Halgurt wrote:


Sure, here is it:





cause: org.apache.avalon.framework.component.ComponentException: input-modules: ComponentSelector could not find the component for hint [request-parameter] (key [request-parameter])



-Ursprüngliche Nachricht-
Von: Olivier Billard [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 19. September 2003 09:19
An: [EMAIL PROTECTED]
Betreff: Re: AW: AW: AW: AW: File existence

Can you send the exact error and the stack trace you got ?


--

--
Olivier BILLARD


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


AW: File existence

2003-09-19 Thread Mustafa Ali, Halgurt
Oh, you are right, I changed it, but the pipeline still choose the second part, no 
matter whether the file exists or not, it ignores the ... part, do you have 
an Idea what is perhaps wrong?

Thanks,
Halgurt
PS: I am a Kurd and my first name is Halgurt, we don't have surnames, Mustafa is my 
father and Ali my Grandfather.

-Ursprüngliche Nachricht-
Von: Olivier Billard [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 19. September 2003 10:02
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 of this type...
see :
cause: org.apache.avalon.framework.component.ComponentException: *input-modules*: 
ComponentSelector could not find the component for hint [*request-parameter*] (key 
[*request-parameter*])

-> this should be request-param...

--
Olivier


On 19/09/2003 10:30, Mustafa Ali, Halgurt wrote:

> Sure, here is it:
> 



> cause: org.apache.avalon.framework.component.ComponentException: input-modules: 
> ComponentSelector could not find the component for hint [request-parameter] (key 
> [request-parameter])
> 
> 
> 
> -Ursprüngliche Nachricht-
> Von: Olivier Billard [mailto:[EMAIL PROTECTED] 
> Gesendet: Freitag, 19. September 2003 09:19
> An: [EMAIL PROTECTED]
> Betreff: Re: AW: AW: AW: AW: File existence
> 
> Can you send the exact error and the stack trace you got ?

-- 

-- 
Olivier BILLARD



-
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]



AW: File existence

2003-09-19 Thread Mustafa Ali, Halgurt
Thanks, but I did it myself, that is not the reason.



-Ursprüngliche Nachricht-
Von: Olivier Billard [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 19. September 2003 09:29
An: [EMAIL PROTECTED]
Betreff: Re: File existence

Sorry, I think I misinterpreted your goal in your pipe...
To fit what you want, the red line whould be :



--
Olivier Billard


On 19/09/2003 09:32, Mustafa Ali, Halgurt wrote:

> Hi,
> 
>  
> 
> I had 2 days ago a question about the way to test whether a file exist 
> or not, I got a lot of answers, the answers are list below, the last 
> suggestion was to write something like that:
> 
>  
> 
> 
> 
>   
> 
>  
> 
>
> 
> 
> 
>  
> 
> 
> 
> 
> 
> 
> 
>   
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  
> 
> 
> 
> 
> 
>
> 
>  
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
> 
> 
>  
> 
> but then I get an error message for the red marked line:
> 
>  
> 
> error while creating node generate at (red line)
> 
>  
> 
> Please help, I am really despaired.
> 
>  
> 
> Many thanks
> 
>  
> 
>  
> 
>  
> 
>  
> 
> -Ursprüngliche Nachricht-
> Von: Olivier 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 it seems no to work, I got an Error, her eis it:
> 
>>
> 
>>  Invalid pattern '{request-parameter:ID}'
> 
>>
> 
>>  Do you have an idea what this is?
> 
>>
> 
>>  regards,
> 
>>
> 
>>  -Ursprüngliche 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 Ali, Halgurt wrote:
> 
>>
> 
>> >But I am using different stylesheets, I made a mistake, I corrected my 
> pipeline and now the Otherwise part will be taken, never mind 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 pipeline, it looks like your are always
> 
>> >generating from the same source no matter if the fileexists or not.
> 
>> >
> 
>> >
> 
>> >
> 
>> >Then you use a tranformer in both cases, the only diference is when you
> 
>> >the file exists, you send parameters to the tranformer:
> 
>> >
> 
>> >
> 
>> >  
> 
>> >
> 
>> >But when the file does not exists you dont send them! Can be this the
> 
>> >source of the error?
> 
>> >
> 
>> >Best Regards,
> 
>> >
> 
>> >Antonio Gallardo
> 
>> >
> 
>> >Mustafa Ali, Halgurt dijo:
> 
>> >
> 
>> >
> 
>> >>Thank you, I tried it, but I have a Problem, I am getting an empty page,
> 
>> >>here is my pipeline:
> 
>> >>
> 
>> >>
> 
>> >>
> 
>> >> 
> 
>> >>  
> 
>> >>   
> 
>> >>   
> 
>> >> 
> 
>> >>   
> 
>> >>   
> 
>> >>   
> 
>> >>   
> 
>> >>   
> 
>> >> 
> 
>> >>   
> 
>> >>  
> 
>> >>  
> 
>> >>   
> 
>> >>   
> 
>> >>  
> 
>> >>  
> 
>> >> 
> 
>> >> 
> 
>> >> 
> 
>> >>
> 
>> >>Am I doing something wrong?
> 
>> >>
> 
>> >>Many thanks,
> 
>> >>Halgurt



-
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]



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

2003-09-19 Thread Mustafa Ali, Halgurt
nts.treeprocessor.variables.PreparedVariableResolver.addModuleVariable(PreparedVariableResolver.java:205)
   ... 58 more


-Ursprüngliche Nachricht-
Von: Olivier Billard [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 19. September 2003 09:19
An: [EMAIL PROTECTED]
Betreff: Re: AW: AW: AW: AW: File existence

Can you send the exact error and the stack trace you got ?





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



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

2003-09-19 Thread Olivier Billard
Can you send the exact error and the stack trace you got ?



On 19/09/2003 09:32, Mustafa Ali, Halgurt wrote:
Hi,

 

I had 2 days ago a question about the way to test whether a file exist 
or not, I got a lot of answers, the answers are list below, the last 
suggestion was to write something like that:

 



  

 

   



 







  











 





   

 









   



 

but then I get an error message for the red marked line:

 

error while creating node generate at (red line)

 

Please help, I am really despaired.

 

Many thanks

 
-Ursprüngliche Nachricht-
Von: Olivier 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 it seems no to work, I got an Error, her eis it:



 Invalid pattern '{request-parameter:ID}'



 Do you have an idea what this is?



 regards,



 -Ursprüngliche 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 Ali, Halgurt wrote:



>But I am using different stylesheets, I made a mistake, I corrected my 
pipeline and now the Otherwise part will be taken, never mind 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 pipeline, it looks like your are always

>generating from the same source no matter if the fileexists or not.

>

>

>

>Then you use a tranformer in both cases, the only diference is when you

>the file exists, you send parameters to the tranformer:

>

>

>  

>

>But when the file does not exists you dont send them! Can be this the

>source of the error?

>

>Best Regards,

>

>Antonio Gallardo

>

>Mustafa Ali, Halgurt dijo:

>

>

>>Thank you, I tried it, but I have a Problem, I am getting an empty page,

>>here is my pipeline:

>>

>>

>>

>> 

>>  

>>   

>>   

>> 

>>   

>>   

>>   

>>   

>>   

>> 

>>   

>>  

>>  

>>   

>>   

>>  

>>  

>> 

>> 

>> 

>>

>>Am I doing something wrong?

>>

>>Many thanks,

>>Halgurt


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


AW: AW: AW: AW: File existence

2003-09-19 Thread Mustafa Ali, Halgurt








Hi,

 

I had 2 days ago a question
about the way to test whether a file exist or not, I got a lot of answers, the
answers are list below, the last suggestion was to write something like that:

 

<map:pipeline>

  <map:match
pattern="handling">

 

   <map:act
type="resource-exists">

    <map:parameter name="url"
value="context://{request-param:ID}.xml"/>

 

    

    <map:generate type="file"
src="{request-param:ID}.xml"
/>

    <map:transform type="xslt"
src="form2data.xsl">

  <map:parameter name="use-request-parameters"
value="true" />

    map:transform>

    <map:transform type="write-source">

    <map:parameter name="use-request-parameters"
value="true" />

    map:transform>

    <map:transform type="xslt"
src="form2html.xsl"
mime-type="text/xml">

 <map:parameter name="use-request-parameters"
value="true" />

    map:transform>

    <map:serialize type="html" />

   map:act>

 

    

    <map:generate type="file" src="default.xml" />

    <map:transform type="xslt"
src="form2data.xsl" />

    <map:serialize type="html" />

   map:match>

map:pipeline>

 

but then I get an error message for the
red marked line:

 

error while creating node generate at
(red line)

 

Please help, I am really despaired.

 

Many thanks

 

 

 

 

-Ursprüngliche Nachricht-
Von: Olivier 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 it seems no to work, I got an Error, her eis it:

> 

> Invalid pattern '{request-parameter:ID}'

> 

> Do you have an idea what this is?

> 

> regards,

> 

> -Ursprüngliche 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 Ali, Halgurt wrote:

> 

>>But I am using different stylesheets, I made a mistake, I
corrected my pipeline and now the Otherwise part will be taken, never mind 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 pipeline, it looks like your are always

>>generating from the same source no matter if the fileexists or
not.

>>

>>

>>

>>Then you use a tranformer in both cases, the only diference is
when you

>>the file exists, you send parameters to the tranformer:

>>

>>

>>  

>>

>>But when the file does not exists you dont send them! Can be
this the

>>source of the error?

>>

>>Best Regards,

>>

>>Antonio Gallardo

>>

>>Mustafa Ali, Halgurt dijo:

>>

>>

>>>Thank you, I tried it, but I have a Problem, I am getting
an empty page,

>>>here is my pipeline:

>>>

>>>

>>>

>>> 

>>>  

>>>   

>>>   

>>>


>>>  


>>>   

>>>   

>>>  


>>>   

>>>


>>>  


>>>  

>>> 


>>>   

>>>   

>>> 


>>>  

>>> 

>>> 

>>> 

>>>

>>>Am I doing something wrong?

>>>

>>>Many thanks,

>>>Halgurt

 

 

 

-

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]

Re: AW: AW: File existence

2003-09-17 Thread Olivier Billard
try a



instead, with an "ID" param leading to a non-existing and existing file...
with a non-existing file, you should have an error telling that the file .xml does not 
exist. It should show you that the replacement is done.

you can also try to remove the "context://" from the url parameter

--
Olivier Billard
On 17/09/2003 15:32, Mustafa Ali, Halgurt wrote:

Well, I tried it, but the  part will be always ignored, no matter whether the file exists or not, I am not getting any Error messages, I think cocoon takes {request-param:ID}.xml as a file name and not the value of {request-param:ID} with the extension .xml as a file name, or am I 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


  
   




  





 


   




   

--
Olivier Billard
On 17/09/2003 11:52, Mustafa Ali, Halgurt wrote:

My files are in the same directory like my sitemap.xmap, I do not even now how to use the Action, can you please tell me how to write my pipeline with this action?

Many thanks

-Ursprüngliche Nachricht-
Von: Olivier Billard [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 17. September 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
*/__/* (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 resource to look for, why don't you use the ResourceExistAction, 
which is more suited to the check of one file ?
The selector is more for a set of resources... (see [1])

[1] 
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/selection/ResourceExistsSelector.html

--
Olivier Billard


On 17/09/2003 11:00, Mustafa Ali, Halgurt wrote:


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.









 

*/__/*

   

   

 

   

   

   

   

   

 

   

  

  

   

   

  

   

 







Am I doing something wrong?



Many thanks,

Halgurt




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

--
Olivier BILLARD


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


AW: AW: File existence

2003-09-17 Thread Mustafa Ali, Halgurt
Well, I tried it, but the  part will be always ignored, no matter 
whether the file exists or not, I am not getting any Error messages, I think cocoon 
takes {request-param:ID}.xml as a file name and not the value of {request-param:ID} 
with the extension .xml as a file name, or am I 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


  

   





  





 


   





   


--
Olivier Billard

On 17/09/2003 11:52, Mustafa Ali, Halgurt wrote:
> My files are in the same directory like my sitemap.xmap, I do not even now how to 
> use the Action, can you please tell me how to write my pipeline with this action?
> 
> Many thanks
> 
> -Ursprüngliche Nachricht-
> Von: Olivier Billard [mailto:[EMAIL PROTECTED] 
> Gesendet: Mittwoch, 17. September 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
> */__/* (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 resource to look for, why don't you use the 
> ResourceExistAction, 
> which is more suited to the check of one file ?
> The selector is more for a set of resources... (see [1])
> 
> [1] 
> http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/selection/ResourceExistsSelector.html
> 
> 
> --
> Olivier Billard
> 
> 
> 
> On 17/09/2003 11:00, Mustafa Ali, Halgurt wrote:
> 
>>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.
>>
>> 
>>
>> 
>>
>> 
>>
>>  
>>
>>   
>>
>>*/__/*
>>
>> 
>>
>> 
>>
>>   
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>>   
>>
>> 
>>
>>
>>
>>
>>
>> 
>>
>> 
>>
>>
>>
>> 
>>
>>   
>>
>>  
>>
>>  
>>
>> 
>>
>> Am I doing something wrong?
>>
>> 
>>
>> Many thanks,
>>
>> Halgurt



-
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]



Re: AW: File existence

2003-09-17 Thread Olivier Billard

 
  
   
   
   
   
 
   
   
   
   
   

   
   
  
   
   
   
   
  

--
Olivier Billard
On 17/09/2003 11:52, Mustafa Ali, Halgurt wrote:
My files are in the same directory like my sitemap.xmap, I do not even now how to use the Action, can you please tell me how to write my pipeline with this action?

Many thanks

-Ursprüngliche Nachricht-
Von: Olivier Billard [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 17. September 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
*/__/* (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 resource to look for, why don't you use the ResourceExistAction, 
which is more suited to the check of one file ?
The selector is more for a set of resources... (see [1])

[1] 
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/selection/ResourceExistsSelector.html

--
Olivier Billard


On 17/09/2003 11:00, Mustafa Ali, Halgurt wrote:

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.







 

  

*/__/*





  











  



   

   





   



  

 

 



Am I doing something wrong?



Many thanks,

Halgurt


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


AW: File existence

2003-09-17 Thread Mustafa Ali, Halgurt
My files are in the same directory like my sitemap.xmap, I do not even now how to use 
the Action, can you please tell me how to write my pipeline with this action?

Many thanks

-Ursprüngliche Nachricht-
Von: Olivier Billard [mailto:[EMAIL PROTECTED] 
Gesendet: Mittwoch, 17. September 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
*/__/* (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 resource to look for, why don't you use the 
ResourceExistAction, 
which is more suited to the check of one file ?
The selector is more for a set of resources... (see [1])

[1] 
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/selection/ResourceExistsSelector.html


--
Olivier Billard



On 17/09/2003 11:00, Mustafa Ali, Halgurt wrote:
> 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.
> 
>  
> 
>  
> 
>  
> 
>   
> 
>
> 
> */__/*
> 
>  
> 
>  
> 
>
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
>
> 
>  
> 
> 
> 
> 
> 
>  
> 
>  
> 
> 
> 
>  
> 
>
> 
>   
> 
>   
> 
>  
> 
>  Am I doing something wrong?
> 
>  
> 
>  Many thanks,
> 
>  Halgurt



-
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]



AW: AW: AW: AW: File existence

2003-09-17 Thread Mustafa Ali, Halgurt
I used *{request-param:ID}* instead of {request-parameter:ID}, now the otherwise part 
will be chosen, no matter whether the file exists or not, I think this 
(*{request-param:ID}*) will be interpreted as a file name and not its value and such a 
file does not exists even. To make it more clear, a user types his ID and I want to 
see if there is a file name with ID, if not I want to create it, that is all what I 
want to do.

Best regards,

-Ursprüngliche Nachricht-
Von: Olivier 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 it seems no to work, I got an Error, her eis it:
> 
> Invalid pattern '{request-parameter:ID}'
> 
> Do you have an idea what this is?
> 
> regards,
> 
> -Ursprüngliche 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 Ali, Halgurt wrote:
> 
>>But I am using different stylesheets, I made a mistake, I corrected my pipeline and 
>>now the Otherwise part will be taken, never mind 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 pipeline, it looks like your are always
>>generating from the same source no matter if the fileexists or not.
>>
>>
>>
>>Then you use a tranformer in both cases, the only diference is when you
>>the file exists, you send parameters to the tranformer:
>>
>>
>>  
>>
>>But when the file does not exists you dont send them! Can be this the
>>source of the error?
>>
>>Best Regards,
>>
>>Antonio Gallardo
>>
>>Mustafa Ali, Halgurt dijo:
>>
>>
>>>Thank you, I tried it, but I have a Problem, I am getting an empty page,
>>>here is my pipeline:
>>>
>>>
>>>
>>> 
>>>  
>>>   
>>>   
>>> 
>>>   
>>>   
>>>   
>>>   
>>>   
>>> 
>>>   
>>>  
>>>  
>>>   
>>>   
>>>  
>>>  
>>> 
>>> 
>>> 
>>>
>>>Am I doing something wrong?
>>>
>>>Many thanks,
>>>Halgurt



-
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]



Re: AW: AW: AW: File existence

2003-09-17 Thread Olivier Billard
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 what this is?

regards,

-Ursprüngliche 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 Ali, Halgurt wrote:

But I am using different stylesheets, I made a mistake, I corrected my pipeline and now the Otherwise part will be taken, never mind 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 pipeline, it looks like your are always
generating from the same source no matter if the fileexists or not.


Then you use a tranformer in both cases, the only diference is when you
the file exists, you send parameters to the tranformer:

 
But when the file does not exists you dont send them! Can be this the
source of the error?
Best Regards,

Antonio Gallardo

Mustafa Ali, Halgurt dijo:


Thank you, I tried it, but I have a Problem, I am getting an empty page,
here is my pipeline:



 
  
  

  
  
  
  
  

  
 
 
  
  
 
 



Am I doing something wrong?

Many thanks,
Halgurt


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


AW: AW: AW: File existence

2003-09-17 Thread Mustafa Ali, Halgurt
Oh it seems no to work, I got an Error, her eis it:

Invalid pattern '{request-parameter:ID}'

Do you have an idea what this is?

regards,

-Ursprüngliche 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 Ali, Halgurt wrote:
> But I am using different stylesheets, I made a mistake, I corrected my pipeline and 
> now the Otherwise part will be taken, never mind 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 pipeline, it looks like your are always
> generating from the same source no matter if the fileexists or not.
> 
> 
> 
> Then you use a tranformer in both cases, the only diference is when you
> the file exists, you send parameters to the tranformer:
> 
> 
>   
> 
> But when the file does not exists you dont send them! Can be this the
> source of the error?
> 
> Best Regards,
> 
> Antonio Gallardo
> 
> Mustafa Ali, Halgurt dijo:
> 
>>Thank you, I tried it, but I have a Problem, I am getting an empty page,
>>here is my pipeline:
>>
>>
>> 
>>  
>>   
>>
>>
>>  
>>
>>
>>
>>
>>
>>  
>>
>>   
>>   
>>
>>
>>   
>>   
>>  
>>  
>>  
>>
>>Am I doing something wrong?
>>
>>Many thanks,
>>Halgurt

-- 
System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de


-
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]



Re: AW: AW: File existence

2003-09-16 Thread Joerg Heinicke
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 will be taken, never mind 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 pipeline, it looks like your are always
generating from the same source no matter if the fileexists or not.


Then you use a tranformer in both cases, the only diference is when you
the file exists, you send parameters to the tranformer:

  
But when the file does not exists you dont send them! Can be this the
source of the error?
Best Regards,

Antonio Gallardo

Mustafa Ali, Halgurt dijo:

Thank you, I tried it, but I have a Problem, I am getting an empty page,
here is my pipeline:


 
  
   
   
 
   
   
   
   
   
 
   
  
  
   
   
  
  
 
 
 
Am I doing something wrong?

Many thanks,
Halgurt
--
System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


AW: AW: File existence

2003-09-16 Thread Mustafa Ali, Halgurt
But I am using different stylesheets, I made a mistake, I corrected my pipeline and 
now the Otherwise part will be taken, never mind 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 pipeline, it looks like your are always
generating from the same source no matter if the fileexists or not.



Then you use a tranformer in both cases, the only diference is when you
the file exists, you send parameters to the tranformer:


  

But when the file does not exists you dont send them! Can be this the
source of the error?

Best Regards,

Antonio Gallardo

Mustafa Ali, Halgurt dijo:
> Thank you, I tried it, but I have a Problem, I am getting an empty page,
> here is my pipeline:
>
> 
>  
>   
>
> 
> 
>   
> 
> 
> 
> 
> 
>   
> 
>
>
> 
> 
>
>
>   
>   
>   
>
> Am I doing something wrong?
>
> Many thanks,
> Halgurt
>
> -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
>>> in
>>>  flowscript, with something like:
>> Hi:
>>
>> Is this action being deprecated in favor of ResourceExistsSelector?
>> See: http://wiki.cocoondev.org/Wiki.jsp?page=ResourceExistsSelector
>
> Sorry, I mean the link is:
>
> http://wiki.cocoondev.org/Wiki.jsp?page=ResourceExistsAction
>
> Antonio Gallardo
>>
>> Best Regards,
>>
>> Antonio Gallardo
>>
>>
>>
>>
>> -
>> 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]
>
>
> - 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]


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



Re: AW: File existence

2003-09-16 Thread Antonio Gallardo
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.



Then you use a tranformer in both cases, the only diference is when you
the file exists, you send parameters to the tranformer:


  

But when the file does not exists you dont send them! Can be this the
source of the error?

Best Regards,

Antonio Gallardo

Mustafa Ali, Halgurt dijo:
> Thank you, I tried it, but I have a Problem, I am getting an empty page,
> here is my pipeline:
>
> 
>  
>   
>
> 
> 
>   
> 
> 
> 
> 
> 
>   
> 
>
>
> 
> 
>
>
>   
>   
>   
>
> Am I doing something wrong?
>
> Many thanks,
> Halgurt
>
> -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
>>> in
>>>  flowscript, with something like:
>> Hi:
>>
>> Is this action being deprecated in favor of ResourceExistsSelector?
>> See: http://wiki.cocoondev.org/Wiki.jsp?page=ResourceExistsSelector
>
> Sorry, I mean the link is:
>
> http://wiki.cocoondev.org/Wiki.jsp?page=ResourceExistsAction
>
> Antonio Gallardo
>>
>> Best Regards,
>>
>> Antonio Gallardo
>>
>>
>>
>>
>> -
>> 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]
>
>
> - 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]



AW: File existence

2003-09-16 Thread Mustafa Ali, Halgurt








Thank you, I tried it, but I
have a Problem, I am getting an empty page, Is the red
line correct? here is my pipeline:

 



 

  

   

     

    

   

    map:transform>

    

     

    map:transform>

    

   

    map:transform>

   map:when>

   

     

     

   map:otherwise>

   map:select>

   

  map:match>

  map:pipeline>

 

Am I doing something wrong?

 

Many thanks,

Halgurt

 

-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

>> in

>>  flowscript, with
something like:

> Hi:

>

> Is this action being deprecated in favor of
ResourceExistsSelector? See:

> http://wiki.cocoondev.org/Wiki.jsp?page=ResourceExistsSelector

 

Sorry, I mean the link is:

 

http://wiki.cocoondev.org/Wiki.jsp?page=ResourceExistsAction

 

Antonio Gallardo

>

> Best Regards,

>

> Antonio Gallardo

>

>

>

>

>
- 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]

 






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

AW: File existence

2003-09-16 Thread Mustafa Ali, Halgurt
Thank you, I tried it, but I have a Problem, I am getting an empty page, here is my 
pipeline:


 
  
   
 

   


 


   

   
   
 
 
   
   
   
  
  

Am I doing something wrong?

Many thanks,
Halgurt

-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
>> in
>>  flowscript, with something like:
> Hi:
>
> Is this action being deprecated in favor of ResourceExistsSelector? See:
> http://wiki.cocoondev.org/Wiki.jsp?page=ResourceExistsSelector

Sorry, I mean the link is:

http://wiki.cocoondev.org/Wiki.jsp?page=ResourceExistsAction

Antonio Gallardo
>
> Best Regards,
>
> Antonio Gallardo
>
>
>
>
> - 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]


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



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 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?

Hi:

A stylesheet is not the best place, but maybe this can helps you:

http://wiki.cocoondev.org/Wiki.jsp?page=ResourceExistsSelector

Best Regards,

Antonio Gallardo




-
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]