Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 98987 invoked from network); 7 Oct 2002 16:20:36 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 7 Oct 2002 16:20:36 -0000 Received: (qmail 29223 invoked by uid 97); 7 Oct 2002 16:20:26 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 28986 invoked by uid 97); 7 Oct 2002 16:20:24 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 28797 invoked by uid 98); 7 Oct 2002 16:20:23 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) From: "Robert" To: "'Jakarta Commons Developers List'" Subject: [Jelly] Invoking methods (was: WhileTag) Date: Mon, 7 Oct 2002 11:18:43 -0500 Message-ID: <03c501c26e1d$35ce88b0$9600a8c0@bulldev> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal In-Reply-To: <02f301c26c54$4625f2e0$9865fea9@spiritsoft.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N That clears it up for me, thanks James. One quick question, can the parameter of a method call be a variable in the context? Using your example: ${plantViewRemote.foo(a, b, 123, 'hello')} I'm guessing/assuming/hoping that the 'a' and 'b' can be variables in the JellyContext, while 'hello' in this case is a static parameter? - Robert -----Original Message----- From: James Strachan [mailto:james_strachan@yahoo.co.uk] Sent: Saturday, October 05, 2002 4:48 AM To: Jakarta Commons Developers List Subject: Re: [Jelly] WhileTag From: "Eric Alexander" > Hi all! Here's a patch to Jelly for a simple while tag. The usage looks like > this: > > > > > > > > > So it simply takes an Expression for an argument and continues to loop while > it's true. Great stuff! Many thanks and to dIon for committing it. > Anyway, Jelly is really really cool. I'm having a lot of fun with it lately. > Jim Birchfield and I have > also came up with the beginnings to an EJB tag.. Here's a sample of what it > looks like now: > > factory="org.jnp.interfaces.NamingContextFactory"/> > homeClass="com.genscape.ejb.common.PlantViewHome" jndiName="ejb/PlantView"/> > remoteClass="com.genscape.ejb.plant.PlantView"/> > method="findPlant"/> > > This is all working pretty good, but we're trying to figure out a way to > pass arguments into the invoked method... > If anyone has any good ideas, just holler! Groovy. You can use the expression language to invoke methods... ${plantViewRemote.foo(a, b, 123, 'hello')} If you want to capture a return value then use this If you want to you can use a real scripting language like beanshell, jython, javascript, jacl etc. Though typically just invoking methods via the expression language (Jexl) is enough. e.g. here's Jason's example script for using the command line.. -a option = ${commandLine.getOptionValue("a")} -b option = ${commandLine.getOptionValue("b")} -c option = ${commandLine.getOptionValue("c")} Properties sysprops = System.getProperties(); System.out.println("-testsysprop = " + sysprops.get("testsysprop")); James-------http://radio.weblogs.com/0112098/ __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: