Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 64646 invoked from network); 13 Oct 2006 17:49:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Oct 2006 17:49:10 -0000 Received: (qmail 39332 invoked by uid 500); 13 Oct 2006 17:49:05 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 39276 invoked by uid 500); 13 Oct 2006 17:49:04 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: 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 97878 invoked by uid 99); 13 Oct 2006 15:31:56 -0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=RCVD_IN_SORBS_WEB X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy includes SPF record at spf.trusted-forwarder.org) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Received:Message-ID:From:To:References:Subject:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Priority:X-MSMail-Priority:X-Mailer:X-MimeOLE; b=YcgbfgX8xAyPaLBSCwuS29ReJlnYWlmgbbePmRD6cQAxrso6+YwZOOlhsbPSEOq4l+B7gVccjaoapHGdX25eKCCVrwpKEqkC4Dx3eEZHbI5CZ5qFUbB/HMwgYFisQ/ASDoE1Qk+0ufagS7+51/mQOo/hi6RjaWUJKMiwRxfi7/w= ; Message-ID: <006401c6eedc$a6b2cf70$0c38a8c0@Finistere.trianglei.com> From: "Pascal LAVAUX \(Yahoo\)" To: "Jakarta Commons Users List" References: <014701c6ed46$5a8ad760$0c38a8c0@Finistere.trianglei.com> Subject: Re: [JEXL] Execution difference between Expression and Script Date: Fri, 13 Oct 2006 17:31:27 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N No, CodeLibelle is a public class. In fact I tried 3 or 4 things in my Script, and nothing seemed to work! I thaught my code was completly bad, but when I tried a single Expression it worked! I can't see what's wrong, I tried with or not semicolon, ... The result is always the same. One more info, the object return by e.evaluate() or s.execute() is always null. Thanks, ----- Original Message ----- From: "Dion Gillard" To: "Jakarta Commons Users List" Sent: Friday, October 13, 2006 5:03 PM Subject: Re: [JEXL] Execution difference between Expression and Script >I can recreate this (or a similar problem) if the class CodeLibelle is > not marked as public. > > Is this the case for you? > > On 10/12/06, Pascal LAVAUX (Yahoo) wrote: >> Hi all, >> >> I'm curently testing JEXL 1.1 for my project and I can't get the Class >> Script >> working. >> >> When I test the same Jexl code with an Expression it works fine, with a >> Script >> it does nothing. >> >> [CODE] >> String jexlCode = "resultat.setCode('OK')"; >> Expression e = ExpressionFactory.createExpression(jexlCode); >> Script s = ScriptFactory.createScript(jexlCode); >> >> CodeLibelle resultatJexl = new CodeLibelle(); >> JexlContext jc = JexlHelper.createContext(); >> jc.getVars().put("resultat", resultatJexl); >> >> resultatJexl.setCode(""); >> e.evaluate(jc); >> out.println("Resultat =" + resultatJexl.getCode()); >> resultatJexl.setCode(""); >> s.execute(jc); >> out.println("Resultat =" + resultatJexl.getCode()); >> [/CODE] >> >> The output is: >> Resultat=OK >> Resultat= >> >> Have anybody an idea? >> >> Thanks, >> ------------------------------------------------------- >> Pascal LAVAUX Responsable Technique >> TRIANGLE Informatique www.triangle-i.com >> ------------------------------------------------------- >> >> >> >> >> >> >> ___________________________________________________________________________ >> D�couvrez une nouvelle fa�on d'obtenir des r�ponses � toutes vos questions ! >> Demandez � ceux qui savent sur Yahoo! Questions/R�ponses >> http://fr.answers.yahoo.com >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org >> For additional commands, e-mail: commons-user-help@jakarta.apache.org >> >> > > > -- > http://www.multitask.com.au/people/dion/ > Rule of Acquisition #91: Hear all, trust nothing. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > ___________________________________________________________________________ D�couvrez une nouvelle fa�on d'obtenir des r�ponses � toutes vos questions ! Demandez � ceux qui savent sur Yahoo! Questions/R�ponses http://fr.answers.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org