Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 85722 invoked from network); 18 Apr 2004 19:14:59 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 18 Apr 2004 19:14:59 -0000 Received: (qmail 46143 invoked by uid 500); 18 Apr 2004 19:14:42 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 46089 invoked by uid 500); 18 Apr 2004 19:14:40 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 45574 invoked from network); 18 Apr 2004 19:14:29 -0000 Received: from unknown (HELO um0004.unimaas.nl) (137.120.1.4) by daedalus.apache.org with SMTP; 18 Apr 2004 19:14:29 -0000 Received: from mail002.unimaas.nl (mail002.unimaas.nl [137.120.1.32]) by um0004.unimaas.nl (Postfix) with ESMTP id 7CE365004A for ; Sun, 18 Apr 2004 21:14:34 +0200 (CEST) Received: by mail002.unimaas.nl with Internet Mail Service (5.5.2653.19) id <26G0PASZ>; Sun, 18 Apr 2004 21:14:34 +0200 Message-ID: From: H.vanderLinden@MI.unimaas.nl To: dev@cocoon.apache.org Subject: Jexl and JXPath give different results! -- reposted! Date: Sun, 18 Apr 2004 21:14:33 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain 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 I do hope someone can look at this and tell me where I'm wrong. Bye, Helma -----Original Message----- From: H.vanderLinden@MI.unimaas.nl [mailto:H.vanderLinden@MI.unimaas.nl] Sent: Thursday, 15 April 2004 23:31 To: dev@cocoon.apache.org Subject: Jexl and JXPath give different results! Hi, I've been fiddling around with retrieving info from a custom built object. For clarity I'll explain the object here: Class Person { private Hashtable cocoonTraits; private String ID; .... public String getID() { return ID; } public Map getTraits() { return cocoonTraits; } } Class CocoonTrait { private Hashtable cocoonTraits; private Hashtable cocoonValues; private String name; .... public String getName() { return name; } public Map getTraits() { return cocoonTraits; } public Map getValues() { return cocoonValues; } } Class CocoonValue { private String name; private Object value; .... public String getName() { return name; } public Object getValue() { return value; } } I've instantiated the above and added some values to the CocoonValue objects. Then I want to display them: A person

A person = ${person.ID}

Trait = ${trait.name}
${value.name}${value.value}
#{./name}
#{./name}#{./value}
The first table correctly shows all Trait names and all Value names and the values of those that are filled in. The second table only shows:
nl.unimaas.mi.proper.pids.CocoonTrait@1991ba7
So either I've done something wrong in the syntax (which I cannot conclude from the docs}, or there is something really wrong. Bye, Helma