From users-return-55556-apmail-cocoon-users-archive=cocoon.apache.org@cocoon.apache.org Wed Sep 17 11:21:16 2003 Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 26942 invoked from network); 17 Sep 2003 11:21:15 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 17 Sep 2003 11:21:15 -0000 Received: (qmail 37487 invoked by uid 500); 17 Sep 2003 11:21:00 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 37455 invoked by uid 500); 17 Sep 2003 11:20:59 -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 37422 invoked from network); 17 Sep 2003 11:20:59 -0000 Received: from unknown (HELO main.gmane.org) (80.91.224.249) by daedalus.apache.org with SMTP; 17 Sep 2003 11:20:59 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19zaMV-0005Cb-00 for ; Wed, 17 Sep 2003 13:20:43 +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 19zaMT-0005CT-00 for ; Wed, 17 Sep 2003 13:20:41 +0200 Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 19zaMj-0005np-00 for ; Wed, 17 Sep 2003 13:20:57 +0200 From: Olivier Billard Subject: Re: AW: File existence Date: Wed, 17 Sep 2003 13:20:29 +0200 Lines: 139 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 -- 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