From users-return-55560-apmail-cocoon-users-archive=cocoon.apache.org@cocoon.apache.org Wed Sep 17 13:44:46 2003 Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 8706 invoked from network); 17 Sep 2003 13:44:46 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 17 Sep 2003 13:44:46 -0000 Received: (qmail 80915 invoked by uid 500); 17 Sep 2003 13:44:09 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 80887 invoked by uid 500); 17 Sep 2003 13:44:09 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 80817 invoked from network); 17 Sep 2003 13:44:08 -0000 Received: from unknown (HELO main.gmane.org) (80.91.224.249) by daedalus.apache.org with SMTP; 17 Sep 2003 13:44:08 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19zcb3-0006fM-00 for ; Wed, 17 Sep 2003 15:43:53 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: users@cocoon.apache.org Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19zcb2-0006fA-00 for ; Wed, 17 Sep 2003 15:43:52 +0200 Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 19zcbI-0001eO-00 for ; Wed, 17 Sep 2003 15:44:08 +0200 From: Olivier Billard Subject: Re: AW: AW: File existence Date: Wed, 17 Sep 2003 15:43:38 +0200 Lines: 179 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030827 X-Accept-Language: fr, fr-fr, en, en-us In-Reply-To: Sender: news X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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:obillard@rennes.jouve.fr] > Gesendet: Mittwoch, 17. September 2003 12:20 > An: users@cocoon.apache.org > 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:obillard@rennes.jouve.fr] >>Gesendet: Mittwoch, 17. September 2003 10:25 >>An: users@cocoon.apache.org >>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: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org -- -- Olivier BILLARD --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org