Return-Path: Delivered-To: apmail-cocoon-users-fr-archive@www.apache.org Received: (qmail 31586 invoked from network); 9 Feb 2006 09:47:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Feb 2006 09:47:49 -0000 Received: (qmail 16877 invoked by uid 500); 9 Feb 2006 09:47:48 -0000 Mailing-List: contact users-fr-help@cocoon.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users-fr@cocoon.apache.org Delivered-To: mailing list users-fr@cocoon.apache.org Received: (qmail 16863 invoked by uid 99); 9 Feb 2006 09:47:48 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Feb 2006 01:47:48 -0800 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=MAILTO_TO_SPAM_ADDR X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [217.12.13.53] (HELO web86901.mail.ukl.yahoo.com) (217.12.13.53) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 09 Feb 2006 01:47:47 -0800 Received: (qmail 69580 invoked by uid 60001); 9 Feb 2006 09:47:26 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=W7GDQXI7mkJa7nMMcp9/NKiwdmNlqKiAfjR6+YvrcumB/y1WeKww3djrbPYl+P7aJVIv3k6L0SVc0sxsZs552oP3kXuNZOpCQq32v6UujHTKDjtB9JdwTXeBAc7t+dqaXYqCoUfOPuNhqphg3XNZcY+tFDvyVWAsqKZpJagtjr0= ; Message-ID: <20060209094726.69578.qmail@web86901.mail.ukl.yahoo.com> Received: from [147.100.14.69] by web86901.mail.ukl.yahoo.com via HTTP; Thu, 09 Feb 2006 10:47:26 CET Date: Thu, 9 Feb 2006 10:47:26 +0100 (CET) From: gueye weuz Subject: Re: processToDOM()? To: users-fr@cocoon.apache.org In-Reply-To: <20060209093750.23010.qmail@web86903.mail.ukl.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Autant pour moi c 'est getDocId.xq � la place de getUserId.xq --- gueye weuz a �crit : > J'ai une collection de documents sur exist. A chaque > document est associ� un identifiant (mon attribut) > g�n�r� automatiquent par exist. Je veux � partir du > nom du document (r�cup�r� depuis un formulaire) > retrouv� dans ma base l'identidiant qui lui est > associ�. > Pour cela j'ai proc�d� comme suit: > 1. R�cup�rer le nom du document dans le flowscript > var paramNomDoc = > form.getChild("nomDoc").getValue(); > > 2. Ensuite je fais une requete xquery ds ma base: > cocoon.sendPageAndWait("getUserId.xq",{nom: > paramNomDoc}); > > le pipeline: > > > > > > > > > fichier xq: > > xquery version "1.0" encoding "ISO-8859-1"; > > > { > for $doc in collection("/societe/document")/document > where $doc/nom = $nom > return > > {$doc/@id} > > } > > > > 3. J'affiche la valeur de l'id par: > print(cocoon.request.getAttribute("id")); > > Je crains aussi que l'ex�cution de mon flowscript > soit > arr�t�e apres le sendPageAndWait c�d qu'il m'affiche > sur le navigateur le fichier xml. > Est ce que cette d�marche est bonne? > > > > > > --- Sylvain Wallez a �crit : > > > gueye weuz wrote: > > > J'appelle le pipeleline parce que le resultat je > > > l'obtiens � la suite d'une requete xquery. > > > J'ai essay� d'utiliser > > > cocoon.request.getAttribute("monAttribut")apres > un > > > sendPage(monURI) et j'obtiens: > > > 1. un 'null" dans le console cocoon. > > > > > Qui est-ce qui positionne cet attribut de requ�te > ? > > > > > 2. une exception: > > "java.lang.IllegalStateException: > > > Pipeline has already been processed for this > > request". > > > > > > > Hmm... il doit y avoir un deuxi�me sendPage(). La > > stacktrace devrait te > > donner l'emplacement de cet appel. > > > > Sylvain > > > > -- > > Sylvain Wallez Anyware > > Technologies > > http://bluxte.net > > http://www.anyware-tech.com > > Apache Software Foundation Member Research & > > Technology Director > > > > > > > --------------------------------------------------------------------- > > Liste francophone Apache Cocoon -- > > http://cocoon.apache.org/fr/ > > Pour vous desinscrire : > > mailto:users-fr-unsubscribe@cocoon.apache.org > > Autres commandes : > > mailto:users-fr-help@cocoon.apache.org > > > > > > > > > > > > ___________________________________________________________________________ > > Nouveau : t�l�phonez moins cher avec Yahoo! > Messenger ! D�couvez les tarifs exceptionnels pour > appeler la France et l'international. > T�l�chargez sur http://fr.messenger.yahoo.com > > --------------------------------------------------------------------- > Liste francophone Apache Cocoon -- > http://cocoon.apache.org/fr/ > Pour vous desinscrire : > mailto:users-fr-unsubscribe@cocoon.apache.org > Autres commandes : > mailto:users-fr-help@cocoon.apache.org > > ___________________________________________________________________________ Nouveau : t�l�phonez moins cher avec Yahoo! Messenger ! D�couvez les tarifs exceptionnels pour appeler la France et l'international. T�l�chargez sur http://fr.messenger.yahoo.com --------------------------------------------------------------------- Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/ Pour vous desinscrire : mailto:users-fr-unsubscribe@cocoon.apache.org Autres commandes : mailto:users-fr-help@cocoon.apache.org