Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 47943 invoked from network); 26 Mar 2004 19:56:44 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 26 Mar 2004 19:56:44 -0000 Received: (qmail 81287 invoked by uid 500); 26 Mar 2004 19:56:29 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 81237 invoked by uid 500); 26 Mar 2004 19:56:29 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 81151 invoked from network); 26 Mar 2004 19:56:28 -0000 Received: from unknown (HELO www.roamware.co.uk) (213.120.115.98) by daedalus.apache.org with SMTP; 26 Mar 2004 19:56:28 -0000 Received: from roamware2eg62k (roamware-2eg62k.development.roamware.com [10.0.0.6]) by www.roamware.co.uk (Postfix) with SMTP id D9FC536C002 for ; Fri, 26 Mar 2004 19:58:29 +0000 (GMT) From: "David Wynter" To: "Jakarta Commons Users List" Subject: RE: [Jelly] Accessing a HashMap in JellyContext variables from script Date: Fri, 26 Mar 2004 19:57:54 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: Importance: Normal 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 Hi, Is my question too hard or too stupid? I note from the Jexl code there is an 'is' method for Boolean that it look sfor, not sure how this would affect my approach to testing a Boolean, should I add an isSuccess() method to my bean? Thanks David > -----Original Message----- > From: David Wynter [mailto:david@roamware.co.uk] > Sent: 25 March 2004 15:32 > To: Jakarta Commons Users List > Subject: [Jelly] Accessing a HashMap in JellyContext variables from > script > > > If I add a HashMap with JavaBeans in it into the JellyContext like so: > > HashMap myBeanMap = new HashMap(); > MyBean aBean = new MyBean(); > aBean.setSuccess(new Boolean(true)); > myBeanMap.put("aBean", aBean); > JellyContext myContext = this.getContext(); > myContext.setVariable("myBeanMap", myBeanMap); > > How would I then test that for that value in HashMap in a Jexl expression? > > something like this? > > > > > Thanks > > David > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org