Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 73151 invoked from network); 4 Apr 2005 23:49:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Apr 2005 23:49:40 -0000 Received: (qmail 32542 invoked by uid 500); 4 Apr 2005 23:49:32 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 32451 invoked by uid 500); 4 Apr 2005 23:49:31 -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 32387 invoked by uid 99); 4 Apr 2005 23:49:31 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mout.perfora.net (HELO mout.perfora.net) (217.160.230.40) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 04 Apr 2005 16:49:30 -0700 Received: from w006.z066237162.bna-tn.dsl.cnc.net[66.237.162.6] (helo=ARCHANGEL) by mrelay.perfora.net with ESMTP (Nemesis), id 0MKyxe-1DIbJv0Cjl-0007o8; Mon, 04 Apr 2005 19:49:27 -0400 Message-ID: <24541338.1112658555496.JavaMail.SYSTEM@ARCHANGEL> From: fomojola@simpleeye.com Reply-To: fomojola@simpleeye.com To: commons-user@jakarta.apache.org Subject: [JEXL] Syntax information MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 04 Apr 2005 19:49:28 -0400 X-Provags-ID: perfora.net abuse@perfora.net login:7055fbb5766e1f6a8f3d2276584e6cb4 X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, I've recently been using JEXL in an attempt to incorporate simple scripting and templating into a solution (without going the full blown Velocity route) and I'm having all kinds of difficulties figuring out what the syntax is for if, foreach and while statements. I've looked through the documentation for an example of a valid IF statement (or a WHILE statement) and I've simply been unable to locate one. The example documentation at http://jakarta.apache.org/commons/jexl/reference/index.html does not have anything useful to offer on that front: the example documentation is limited to operator assignments with no examples of if/while/foreach constructs. If anyone has more complete examples or can understand the JavaCC generated code well enough to explain it to me, I'd be perfectly willing to compile them into a more complete reference. Thanks, Femi. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org