Return-Path: Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 46642 invoked by uid 500); 8 Aug 2003 19:46:50 -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 46628 invoked from network); 8 Aug 2003 19:46:50 -0000 Received: from anchor-post-33.mail.demon.net (194.217.242.91) by daedalus.apache.org with SMTP; 8 Aug 2003 19:46:50 -0000 Received: from media.demon.co.uk ([80.177.14.141]) by anchor-post-33.mail.demon.net with esmtp (Exim 3.35 #1) id 19lDCQ-000EOb-0X for dev@cocoon.apache.org; Fri, 08 Aug 2003 20:46:54 +0100 Date: Fri, 8 Aug 2003 20:46:52 +0100 Mime-Version: 1.0 (Apple Message framework v552) Content-Type: text/plain; charset=US-ASCII; format=flowed Subject: accessing a HashMap from JXTemplate From: Jeremy Quinn To: dev@cocoon.apache.org Content-Transfer-Encoding: 7bit Message-Id: <0EF9ED64-C9D9-11D7-8570-0003935AD2EE@media.demon.co.uk> X-Mailer: Apple Mail (2.552) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi All, In my model, validation errors on a FormBean are added to a HashMap that is a property of that FormBean. ie. if (getName() == null || "".equals (getName()) || DEFAULT_NAME.equals (getName ())) { mErrors.put (Constants.NAME_FIELD, "Please enter a proper name"); } I then expected to be able to extract these errors from JXTemplate like this: #{form/errors[constants/NAME_FIELD]} but it does not output anything, so I tried this : #{name()} #{.} but got unexpected results : {name=Please enter a proper name} {name=Please enter a proper name} Anyone work out what I am doing wrong? thanks for any help regards Jeremy