Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 79507 invoked from network); 5 Jan 2004 18:33:04 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 5 Jan 2004 18:33:04 -0000 Received: (qmail 29645 invoked by uid 500); 5 Jan 2004 18:32:49 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 29588 invoked by uid 500); 5 Jan 2004 18:32:48 -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 29487 invoked from network); 5 Jan 2004 18:32:47 -0000 Received: from unknown (HELO fw01.mgsft.com) (203.6.130.130) by daedalus.apache.org with SMTP; 5 Jan 2004 18:32:47 -0000 Received: (qmail 9566 invoked by uid 0); 5 Jan 2004 18:32:49 -0000 Received: from aramis.mgsft.com (HELO aramis) (192.168.20.71) by fw01.osa.com with SMTP; 5 Jan 2004 18:32:49 -0000 Received: from crafterm by aramis with local (Exim 3.36 #1 (Debian)) id 1AdZWy-0003pF-00 for ; Mon, 05 Jan 2004 19:32:48 +0100 Date: Mon, 5 Jan 2004 19:32:47 +0100 To: commons-user@jakarta.apache.org Subject: [jexl/jelly] accessing public fields? Message-ID: <20040105183247.GA14695@managesoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.4i From: Marcus Crafter 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 All, Hope all is going well. I'm currently stumped in the following situation. I have a class that has public fields in it, and I'd like to access them from inside a jelly script, however when I write: ${event.widget} it always gives me nothing in return. >From what I can tell, it's not searching for the public field 'widget' on the object 'event', it seems to be searching for a 'getWidget' method or a 'get' method that will accept 'widget' as a property name. This was just by inspecting the source for jexl and looking at the util/introspection classes. If my class: public class Event { public Event event; /* ... */ } has such a public field, how can I access the value of this field inside of jelly? Should I be doing something else to get the value? Perhaps I've misunderstood the jexl/jelly source, or misunderstood something else? Any ideas appreciated. Cheers, Marcus -- ..... ,,$$$$$$$$$, Marcus Crafter ;$' '$$$$: Computer Systems Engineer $: $$$$: ManageSoft GmbH $ o_)$$$: 82-84 Mainzer Landstrasse ;$, _/\ &&:' 60327 Frankfurt Germany ' /( &&& \_&&&&' &&&&. &&&&&&&: --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org