Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 93730 invoked from network); 12 Dec 2004 13:29:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 12 Dec 2004 13:29:20 -0000 Received: (qmail 32545 invoked by uid 500); 12 Dec 2004 13:29:11 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 32516 invoked by uid 500); 12 Dec 2004 13:29:11 -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 32502 invoked by uid 99); 12 Dec 2004 13:29:11 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from jacquard.numericable.net (HELO jacquard.numericable.net) (80.236.0.148) by apache.org (qpsmtpd/0.28) with ESMTP; Sun, 12 Dec 2004 05:29:09 -0800 Received: (qmail 28067 invoked from network); 12 Dec 2004 13:29:06 -0000 Received: from unknown (HELO localhost.localdomain) ([80.236.88.95]) (envelope-sender ) by jacquard.numericable.net (qmail-ldap-1.03) with SMTP for ; 12 Dec 2004 13:29:06 -0000 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by localhost.localdomain (Postfix) with ESMTP id 4B0EF3826A27 for ; Sun, 12 Dec 2004 14:29:05 +0100 (CET) Message-ID: <41BC47A1.3030302@zorel.org> Date: Sun, 12 Dec 2004 14:29:05 +0100 From: =?ISO-8859-1?Q?Aur=E9lien_DEHAY?= User-Agent: Mozilla Thunderbird 0.9 (X11/20041124) X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Database in flow/problem with jxpath Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello. I've got the following flow code: function modifierContenu() { var conn = Database.getConnection("llinfo"); var result = conn.query("SELECT * FROM people"); var record = result.rows; conn.close(); cocoon.sendPage("protected-test-2", {"record": record}); } I've got the following jxpath file (called by the protected-test-2 pipeline): Bienvenue dans la Batcave

-= #{login} =-

-= #{id} =-

The #{login} and #{id} are not set to the corresponding values. It only works when I put the following thing: (i.e. the #{} are replace only when they are in a attribute). I've tried to put a jx:out value="#{login}", which doesn't work either. I'm using cocoon 2.1.6 on a Tomcat 5.0.28. I someone could give me hints about this problem.... Rgds. -- Aur�lien --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org