JEXL Exception Handling Or Not....

2007-06-25 Thread Guerry Semones
Hello, I'm new to using JEXL and was surprised by the following behavior (see code below). Obviously badMethodName() is not a method on the String bar. I expected JEXL to throw some appropriate exception. Rather, JEXL returned null for the call, which is not a good thing, IMHO. Switching

JEXL ParserVisitor / Validation of expressions against model

2007-02-20 Thread Jerry DuVal
I don't see any examples of usages, does anyone have one? Basically we allow our users to enter JEXL expressions on our Data Objects as metadata used in the application. I want to validate the expression entered against our ObjectModel to determine if the expression entered is valid. I noticed

JEXL ParserVisitor / Validation of expressions against model

2007-02-20 Thread Jerry DuVal
I don't see any examples of usages, does anyone have one? Basically we allow our users to enter JEXL expressions on our Data Objects as metadata used in the application. I want to validate the expression entered against our ObjectModel to determine if the expression entered is valid. I noticed

Re: [SCXML] Using Static methods from JEXL

2007-02-10 Thread Nestor Urquiza
You are right, JEXL 1.1 supports it. Thanks a bunch, -Nestor --- Rahul Akolkar [EMAIL PROTECTED] wrote: On 2/9/07, Nestor Urquiza [EMAIL PROTECTED] wrote: Hi guys, Just wondering if someone was able to use from JEXL something like: var name=foo expr=MyClass.myStaticMethod

Re: [SCXML] Using Static methods from JEXL

2007-02-09 Thread Rahul Akolkar
On 2/9/07, Nestor Urquiza [EMAIL PROTECTED] wrote: Hi guys, Just wondering if someone was able to use from JEXL something like: var name=foo expr=MyClass.myStaticMethod() Right now I can do: var name=foo expr=myInstance.myNonStaticMethod() given the fact that I previously have: MyClass

[JEXL] custom functions

2007-01-05 Thread Nestor Urquiza
Hi guys, Just wondering if there is a way or a plan to provide a way for using functions within JEXL. I am just looking for a way to reuse several JEXL statements that repeteadly are to be executed within my code potentially returning of course some kind of result. Thanks, -Nestor

Re: [JEXL] custom functions

2007-01-05 Thread Rahul Akolkar
On 1/5/07, Nestor Urquiza [EMAIL PROTECTED] wrote: Hi guys, Just wondering if there is a way or a plan to provide a way for using functions within JEXL. snip/ Not without attaching a variable in the context to get at those. http://issues.apache.org/jira/browse/JEXL-29 -Rahul I am just

Re: [JEXL] need more info on language

2006-12-07 Thread Dion Gillard
On 12/7/06, Fedorychak Artem [EMAIL PROTECTED] wrote: Hello, I need an expression engine, so I'm playing with JEXL now. However, I didn't find enough documentation on syntax and semantics of its language. For example, about variable types and type casts. What sort of information are you

[JEXL] need more info on language

2006-12-06 Thread Fedorychak Artem
Hello, I need an expression engine, so I'm playing with JEXL now. However, I didn't find enough documentation on syntax and semantics of its language. For example, about variable types and type casts. Another issue is it evaluates only the result of first statement, that is the result

Re: [Jexl] Are jexl Expression threadsafe and reusable?

2006-10-17 Thread Dion Gillard
There's no guarantee they are thread safe, and specifically using the same context across threads is definitely NOT thread safe. On 9/4/06, Eickvonder Bjoern [EMAIL PROTECTED] wrote: Hello, does anyone know if I can safely cache jexl Expression objects in order to reuse them? Moreover

Re: [JEXL] Are read-only contexts workable?

2006-10-15 Thread Dion Gillard
Sure. During the assignment of variables ( x = 2; ) the context should get updated with a put. I don't believe we use putAll or remove, but would need to check the code for sure. On 10/15/06, Michael Hahn [EMAIL PROTECTED] wrote: I would like to use JEXL for a project I'm working on. However

[JEXL] Are read-only contexts workable?

2006-10-14 Thread Michael Hahn
I would like to use JEXL for a project I'm working on. However, I need to know if the map exported by the JexlContext would ever have the put, putall, or remove called on it. - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [JEXL] Execution difference between Expression and Script

2006-10-13 Thread Dion Gillard
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) [EMAIL PROTECTED] 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

Re: [JEXL] Execution difference between Expression and Script

2006-10-13 Thread Pascal LAVAUX \(Yahoo\)
info, the object return by e.evaluate() or s.execute() is always null. Thanks, - Original Message - From: Dion Gillard [EMAIL PROTECTED] To: Jakarta Commons Users List commons-user@jakarta.apache.org Sent: Friday, October 13, 2006 5:03 PM Subject: Re: [JEXL] Execution difference

Re: [JEXL] Execution difference between Expression and Script

2006-10-13 Thread Dion Gillard
a non-null return value. If you could help track this one down, that would be fantastic! Thanks, Thanks, - Original Message - From: Dion Gillard [EMAIL PROTECTED] To: Jakarta Commons Users List commons-user@jakarta.apache.org Sent: Friday, October 13, 2006 5:03 PM Subject: Re: [JEXL

[JEXL] Execution difference between Expression and Script

2006-10-11 Thread Pascal LAVAUX \(Yahoo\)
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

Re: International characters in JEXL

2006-09-26 Thread Dion Gillard
to compile Jexl against 1.2/1.3 using maven, you'll need the following command line invocation (all on one line): maven -Dmaven.compile.fork=yes -Dmaven.compile.executable=c:\jdk1.3.1_16\bin\javac.exe -Dbuild.compiler=modern clean test Obviously the javac executable will probably be different on your

[jexl] Fwd: commons-jexl query

2006-09-26 Thread Dion Gillard
I've raised http://issues.apache.org/jira/browse/JEXL-24 -- Forwarded message -- From: Manisha Athavale [EMAIL PROTECTED] Date: Sep 25, 2006 11:10 PM Subject: RE: commons-jexl query To: Dion Gillard [EMAIL PROTECTED] Ok, cool. So what is the process for it? Should I create

Re: International characters in JEXL

2006-09-20 Thread Randy H.
I had similar issue with the latest jexl 1.1 release. Seems the option for unicode support is not enabled when using the parser was generated. Here is what I did to get it work with non-ASCII code: 1. Download and unzip jexl 1.1 source from: http://www.axint.net/apache/jakarta/commons/jexl

Re: International characters in JEXL

2006-09-20 Thread Dion Gillard
Randy, this seems like a worthwhile 1.1.1 fix. On 9/21/06, Randy H. [EMAIL PROTECTED] wrote: I had similar issue with the latest jexl 1.1 release. Seems the option for unicode support is not enabled when using the parser was generated. Here is what I did to get it work with non-ASCII code: 1

[Jexl] Number type Coercion

2006-09-15 Thread schierge.tobias
Hi, in Jexl it is not possible to use a custom Number without losing decimals because Number instances are always converted to Long. Other Types as Double or Float cannot be customized as they are final. I'm trying to use a double value which also implements a list interface for indexed access

Re: [ANNOUNCEMENT] Commons JEXL 1.1 released

2006-09-13 Thread Rahul Akolkar
On 9/12/06, digby [EMAIL PROTECTED] wrote: Good news - are there any examples of the new syntax (if, foreach, etc)? I couldn't find anything. snip/ Little bits at the bottom of this page: http://jakarta.apache.org/commons/jexl/reference/syntax.html Or go direct to the tests and check out

Re: [ANNOUNCEMENT] Commons JEXL 1.1 released

2006-09-12 Thread digby
Good news - are there any examples of the new syntax (if, foreach, etc)? I couldn't find anything. Digby Rahul Akolkar wrote: The Apache Jakarta project would like to announce the release of Commons JEXL 1.1. JEXL is an Expression Language supporting most of the constructs in the JSP

[ANNOUNCEMENT] Commons JEXL 1.1 released

2006-09-11 Thread Rahul Akolkar
The Apache Jakarta project would like to announce the release of Commons JEXL 1.1. JEXL is an Expression Language supporting most of the constructs in the JSP Expression Language, with some additional extensions. This release is available in either binary or source form from the following

[Jexl] Are jexl Expression threadsafe and reusable?

2006-09-03 Thread Eickvonder Bjoern
Hello, does anyone know if I can safely cache jexl Expression objects in order to reuse them? Moreover are these expressions threadsafe, such that multiple threads can use a single expression object at the same time? Bjoern Eickvonder Diese E-Mail enthaelt vertrauliche und/oder rechtlich

Re: International characters in JEXL

2006-08-18 Thread Dion Gillard
Not sure how/if the grammar supports it. I'll have a look. On 8/18/06, Adam Orendorz [EMAIL PROTECTED] wrote: How can I use international characters in JEXL expressions? For example: myvar == 'Użytkownik' (string constant contains Polish 'z' with dot) I get the following exception

International characters in JEXL

2006-08-17 Thread Adam Orendorz
How can I use international characters in JEXL expressions? For example: myvar == 'Użytkownik' (string constant contains Polish 'z' with dot) I get the following exception: org.apache.commons.jexl.parser.TokenMgrError: Lexical error at line 1, column 17. Encountered: \u0139 (313), after

Re: [jexl] EL-style string evaluations

2006-06-20 Thread Hubert Rabago
On 6/19/06, Rahul Akolkar [EMAIL PROTECTED] wrote: I suspect you can try: String expr = ' JEXL lets you do everything you would do with EL. ' + thingy.foo for the desired outcome (whitespace exaggerated for readability in email). -Rahul Thanks, Rahul. I have tried it that way. I just

[jexl] EL-style string evaluations

2006-06-19 Thread Hubert Rabago
Is the sample in this message valid: http://marc.theaimsgroup.com/?l=jakarta-commons-userm=111974074105369w=2 SomeObject thingy = new SomeObject(); thingy.setFoo( Blah ); String expr = JEXL let's you do everything you'd do with EL. ${thingy.foo

Re: [jexl] EL-style string evaluations

2006-06-19 Thread Rahul Akolkar
= JEXL let's you do everything you'd do with EL. ${thingy.foo}; snap/ Two issues about parsing that: * Single quotes demarcate String literals, and cannot be used at will like that * JEXL has no concept of ${...} and will not attach any semantics to the construct I suspect you can try: String expr

[jexl] How to escape the Apostrophe

2006-05-26 Thread Nestor Urquiza
Hello guys, I need to have a string resulting from the expression foo's brother + is bar However the software I am using is expecting the concatenation to use single quotes like: 'foo's brother' + ' is bar' Of course the above is invalid and I cannot come up with a solution for escaping. I

Re: [jexl] How to escape the Apostrophe

2006-05-26 Thread Dion Gillard
Jexl doesn't have a way of escaping quotes as such. All Strings in Jexl are either single quoted or double quoted, no mixing of the two. Is there no way you could replace the first and last single quotes with doubles? On 5/26/06, Nestor Urquiza [EMAIL PROTECTED] wrote: Hello guys, I need

Re: [jelly] Re: Jelly to use new Jexl ?

2006-04-20 Thread Dion Gillard
Possible, yes. Assignment in Jexl 1.0 is legal, parsed successfully, but does nothing. On 4/19/06, Hans Gilde [EMAIL PROTECTED] wrote: JSP has multiple ways to do variable assignment (similar to using tags versus Jexl) and people seem to handle picking the right one. Would it be possible

Re: [jelly] Re: Jelly to use new Jexl ?

2006-04-16 Thread Dion Gillard
okay by me, I was just making sure that we all understood what the latest Jexl brings. On 4/16/06, Paul Libbrecht [EMAIL PROTECTED] wrote: I have to say that I'd rather say it's good for jelly to have these features available. Loops shouldn't be a poblem. As for assignments, as far as I

[jexl] 1.1 nearing feature completion

2006-04-04 Thread Dion Gillard
Hi all, Jexl is pretty near to feature complete for the 1.1 release. There's an implementation of Script now which allows loading and executing scripts from a literal String, a file or a URL. The grammar has been completely implemented, and now includes assignment, for/while/if statements

Assignments in Jexl

2006-02-27 Thread הראל בן עטיה
Hi, I would like to know if there is a way to make variable assignments through Jexl expressions. Trying the obvious expression x = val returns an invalid expression exception. I've succeeded to do it by making x a class of my own and calling a setter method x.set(50) in the expression, but I

Re: Assignments in Jexl

2006-02-27 Thread Dion Gillard
The current version of JEXL in SVN supports assignments. If you need to do it using JEXL 1.0, make the context as a variable to your script and use: contextVar.getVars().put(varName, value) On 2/28/06, הראל בן עטיה [EMAIL PROTECTED] wrote: Hi, I would like to know if there is a way to make

[JEXL] If Statement?

2006-02-26 Thread Dion Gillard
% sure. On 2/22/06, Patrick Schulz [EMAIL PROTECTED] wrote: Hi Dion, sorry, you are my victim now ;-) I'm using JEXL in a project and hoped it supports conditional expressions like if, iif or ? : . I found some posts that it is not supported yet but just parsed. So my question, where

[SCXML, JEXL] microwave-01.xml test error

2006-02-09 Thread sungchan
Could you run microwave-01.xml in SCXML example one more time? I got run-time errors in the middle of test. The below is running log. 2006. 2. 10 오전 8:26:35 org.apache.commons.scxml.env.SimpleSCXMLListeneronEntry info: /off 2006. 2. 10 오전 8:26:35 org.apache.commons.scxml.SCXMLExecutor logState

[Jexl]Log4j warnings

2005-12-10 Thread Sam Hwang
Hi, I simply build a program and got the following messages: log4j:WARN No appenders could be found for logger (org.apache.commons.jexl.ExpressionFactory). log4j:WARN Please initialize the log4j system properly. How can I configure log4j for Jexl? Thanks

Re: [Jexl]Log4j warnings

2005-12-10 Thread Jacob Kjome
At 05:41 PM 12/10/2005 +0800, you wrote: Hi, I simply build a program and got the following messages: log4j:WARN No appenders could be found for logger (org.apache.commons.jexl.ExpressionFactory). log4j:WARN Please initialize the log4j system properly. How can I configure log4j for Jexl? Thanks

Making JEXL more like Velocity

2005-11-16 Thread Doug_Rand
It's apparent from the structure of JEXL that it has a great deal in common with Velocity. It uses the same introspector/uberspec pattern, etc. I have two questions: 1) Would it be reasonable to add the same ability to JEXL that exists in Velocity to allow the runtime configuration

Re: [jexl] how to implement variable replacement in expressions

2005-11-06 Thread sean liu
Thanks a lot for your helps, Dion. I have some confusion about jexl. In OReilly book Jakarta Commons Cookbook, there is a chapter called Templating in which there is the following code snippets: import org.apache.commons.jexl.Expression; import org.apache.commons.jexl.ExpressionFactory

Re: [jexl] how to implement variable replacement in expressions

2005-11-06 Thread Dion Gillard
Nope, the JEXL syntax hasn't changed. I'm guessing they: a) Based their code on something else, possbly Jelly, or b) Never tested it On 11/7/05, sean liu [EMAIL PROTECTED] wrote: Thanks a lot for your helps, Dion. I have some confusion about jexl. In OReilly book Jakarta Commons Cookbook

Re: [jexl] how to implement variable replacement in expressions

2005-11-04 Thread Dion Gillard
On 11/3/05, sean liu [EMAIL PROTECTED] wrote: Hi guys: I want to use jexl to implement variable replacement in expressions. For example: expression: Hello: ${person.name http://person.name/}, your age is ${ Try with the following Expression in double quotes: 'Hello ' + person.name + ' http

[jexl] how to implement variable replacement in expressions

2005-11-03 Thread sean liu
Hi guys: I want to use jexl to implement variable replacement in expressions. For example: expression: Hello: ${person.name http://person.name/}, your age is ${ person.age}! public class Person { private String name; private int age; //setters,getters } i use the following codes: Person

Re: [Jelly/JEXL] String concatenation

2005-07-19 Thread Paul Libbrecht
Have you tried: j:set var=classPath value=${classPath}./lib/${dep.artifactId}.jar/ which is more compact. Or j:set var=classPath value=${classPath.toString().concat('./lib/ ').concat(dep.artifactId).concat('.jar')/ Remember... java under the hood! paul PS: .toString() only needed

Re: [Jelly/JEXL] String concatenation

2005-07-19 Thread Grant Ingersoll
Thanks, although I must confess, I thought I was doing java under the hood when I used the + operator to concatenate what I thought were strings! Especially since the JEXL front page has an announcement about how the + operator has been overloaded for String concatenation (perhaps my version

Re: [Jelly/JEXL] String concatenation

2005-07-19 Thread Dion Gillard
Hmmmmust fix that examples link. On 7/20/05, Grant Ingersoll [EMAIL PROTECTED] wrote: Thanks, although I must confess, I thought I was doing java under the hood when I used the + operator to concatenate what I thought were strings! Especially since the JEXL front page has

[Jelly/JEXL] String concatenation

2005-07-18 Thread Grant Ingersoll
Hi, I would like to dynamically construct a String and for the life of me can't figure out how to concatenate two strings together. Would like to do something like (in Maven, btw): j:set var=classPath value=/ j:forEach var=lib items=${pom.artifacts} j:set var=dep

Re: [Jelly/JEXL] String concatenation

2005-07-18 Thread Grant Ingersoll
One possible way I found, to answer my own question: j:set var=classPath value=./conf / j:forEach var=lib items=${pom.artifacts} j:set var=dep value=${lib.dependency}/ j:if test=${dep.type =='jar'} ant:copy todir=${delivery.home.lib}

Re: [Jelly/JEXL] String concatenation

2005-07-18 Thread J.Enrique Ruiz
Try this: j:set var=classPath value=${classPath}./lib/${dep.artifactId}.jar/ Hi, I would like to dynamically construct a String and for the life of me can't figure out how to concatenate two strings together. Would like to do something like (in Maven, btw): j:set var=classPath value=/

Re: JELLY: Escaping output of JEXL expression

2005-07-07 Thread Christian Kalkhoff
. an char. Is there a way to tell jelly (or jexl) to escape such xml special chars. Are there workarounds? Regards, Christian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

JELLY: Escaping output of JEXL expression

2005-07-06 Thread Christian Kalkhoff
Hi, i ran into the problem, that jelly outputs invalid xml if one of the beans available as context variables contains e.g. an char. Is there a way to tell jelly (or jexl) to escape such xml special chars. Are there workarounds? Regards, Christian

JELLY: Escaping output of JEXL expression

2005-07-06 Thread Christian Kalkhoff
Hi, i ran into the problem, that jelly outputs invalid xml if one of the beans available as context variables contains e.g. an char. Is there a way to tell jelly (or jexl) to escape such xml special chars. Are there workarounds? Regards, Christian

Re: [jelly]: Escaping output of JEXL expression

2005-07-06 Thread Paul Libbrecht
Can you be more precise, maybe make a tiny test-case ? paul Le 6 juil. 05, à 14:05, Christian Kalkhoff a écrit : Hi, i ran into the problem, that jelly outputs invalid xml if one of the beans available as context variables contains e.g. an char. Is there a way to tell jelly (or jexl

Re: [jelly]: Escaping output of JEXL expression

2005-07-06 Thread Christian Kalkhoff
outputs invalid xml if one of the beans available as context variables contains e.g. an char. Is there a way to tell jelly (or jexl) to escape such xml special chars. Are there workarounds? Regards, Christian

Re: [jelly]: Escaping output of JEXL expression

2005-07-06 Thread Dion Gillard
precise, maybe make a tiny test-case ? paul Le 6 juil. 05, à 14:05, Christian Kalkhoff a écrit : Hi, i ran into the problem, that jelly outputs invalid xml if one of the beans available as context variables contains e.g. an char. Is there a way to tell jelly (or jexl) to escape

Re: JELLY: Escaping output of JEXL expression

2005-07-06 Thread Dion Gillard
if one of the beans available as context variables contains e.g. an char. Is there a way to tell jelly (or jexl) to escape such xml special chars. Are there workarounds? Regards, Christian - To unsubscribe, e-mail: [EMAIL

jexl: how to include another xml file?

2005-06-23 Thread Pavel Reich
How can I include another file (subscript) in main script? I have main script and subscript. Subscript is the following: root j:ie-click-link xmlns:j=jelly:jameleon functionId=Click the test project to open it link=${project}/ /root Main script includes this subscript with

[jexl] Re: Is JEXL still an active project

2005-06-06 Thread peter royal
I'm CC'ing the commons user list, which is the appropriate forum for questions like this.. On Jun 6, 2005, at 12:08 PM, [EMAIL PROTECTED] wrote: I'm in the final phase of a design process and I have been intending to use JEXL as a scripting language. Before I finish committing to this I'm

Re: [jexl] Re: Is JEXL still an active project

2005-06-06 Thread jastrachan
If I need an expression language these days I tend to use Groovy which is quite a bit more powerful :) But Jexl still does what it says on the tin (its also close to JSP EL). On 6 Jun 2005, at 17:12, peter royal wrote: I'm CC'ing the commons user list, which is the appropriate forum

[JEXL] Syntax information

2005-04-04 Thread fomojola
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

Re: [JEXL] Syntax information

2005-04-04 Thread Dion Gillard
if, foreach and while are defined in the grammar, but not implemented in 1.0. If you need that sort of expression language, something like Rhino from Mozilla would be great. On Apr 5, 2005 9:49 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I've recently been using JEXL in an attempt

Jexl if statement

2005-04-02 Thread Misha Stankovic
Hi, Could someone clarify for me please whether the jexl library supports if statements. It appears that theere is a placeholder for this statement in the language syntax, but the statement does not seem to be implemented. Whenever I tried creating expressions with the syntax if( expression

Re: Jexl if statement

2005-04-02 Thread Dion Gillard
On Apr 3, 2005 4:34 PM, Misha Stankovic [EMAIL PROTECTED] wrote: Hi, Could someone clarify for me please whether the jexl library supports if statements. It does not. It appears that theere is a placeholder for this statement in the language syntax, but the statement does not seem

RE: JEXL syntax question pt 2

2005-02-04 Thread robert_gary
the assignment? If it is dynamic, how will they be assigned types? Thanks! -Robert -Original Message- From: Dion Gillard [mailto:[EMAIL PROTECTED] Sent: Thursday, February 03, 2005 7:13 PM To: Jakarta Commons Users List Subject: Re: JEXL syntax question pt 2 Not yet :-) Assignment, e.g a = 1.2

RE: JEXL

2005-02-04 Thread robert_gary
Yes, exactly. -Original Message- From: Dion Gillard [mailto:[EMAIL PROTECTED] Sent: Thursday, February 03, 2005 7:12 PM To: Jakarta Commons Users List Subject: Re: JEXL Noone yet. Feel free to post it as an enhancement. I'm assuming you mean binary operators

Installing Jexl

2005-02-03 Thread robert_gary
I'm having trouble finding all the pieces I need to install Jexl. I guess I need commons logging and junit as well as some other things. I found junit on the web but the structure did not seem to match what jexl was looking for. Is there anywhere I can find jexl bundled with its required

JEXL

2005-02-03 Thread robert_gary
I got JEXL installed. I was using IntelliJ and setting the classpath in the project properties rather than in the ANT file properties. Has anyone considered adding binary operations to JEXL? -Robert

JEXL syntax question pt 2

2005-02-03 Thread robert_gary
In the syntax document http://jakarta.apache.org/commons/jexl/reference/syntax.html about 4/5 of the way down pg 1 in the description of Statements it says that a statement can be ...block, ASSIGNMENT, or an expression (emphasis added). What is meant by the word assignment? Does the script writer

Re: JEXL

2005-02-03 Thread Dion Gillard
Noone yet. Feel free to post it as an enhancement. I'm assuming you mean binary operators for 'or, not, and' ? On Thu, 3 Feb 2005 15:50:41 -0700, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I got JEXL installed. I was using IntelliJ and setting the classpath in the project properties rather

Re: JEXL syntax question pt 2

2005-02-03 Thread Dion Gillard
Not yet :-) Assignment, e.g a = 1.2 + b * 5, is available as a patch and planned for 1.1 of JEXL. On Thu, 3 Feb 2005 17:16:10 -0700, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: In the syntax document http://jakarta.apache.org/commons/jexl/reference/syntax.html about 4/5 of the way down pg 1

[commons-jexl]

2005-01-10 Thread Norm Deane
Can jexl be extended to do regexp evaluation against strings? If not, does anyone know of a JEXL-like expression evaluator that will do this? Thanks, Norm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Re: [commons-jexl]

2005-01-10 Thread Dion Gillard
With JDK1.4 you can do this already with methods like String.matches(String regexp). You should be able to call those directly from JEXL. Does that help? On Mon, 10 Jan 2005 14:08:07 -0600, Norm Deane [EMAIL PROTECTED] wrote: Can jexl be extended to do regexp evaluation against strings

Re: JEXL: Is there a way to register functions?

2005-01-01 Thread peter royal
On Dec 23, 2004, at 5:06 PM, Néstor Boscán wrote: Is there a way to register functions?. I would like to have something like the size function. The easiest way is to place a bean with functions you desire in your context, and then you can execute its methods in your expression. -pete

Re: JEXL: Is there a way to register functions?

2004-12-24 Thread Dion Gillard
Not in the current version of JEXL. It is on the wishlist however. You might want to file an enhancement request against JEXL to ensure it's remembered. On Thu, 23 Dec 2004 18:06:52 -0400, Néstor Boscán [EMAIL PROTECTED] wrote: Hi Is there a way to register functions?. I would like to have

JEXL: Is there a way to register functions?

2004-12-23 Thread Néstor Boscán
Hi Is there a way to register functions?. I would like to have something like the size function. Regards, Néstor Boscán

JEXL Questions

2004-12-08 Thread Your Name
Hi I've been checking out JEXL and is very easy to use. I was wondering if I can do the following things: 1.- Define an expression and then reuse that expression as a function. I want to be able to let users configure their own expressions and then reuse them in another expression. Something

RE: JEXL Questions

2004-12-08 Thread Hans Gilde
For (1), it sounds to me like you want to put the result of TRIANGLEAREA in a variable in the JexlContext and pass that context into a second JEXL expression? For (2), you can't (well, you can, but not easily) find the variables in the expression programmatically. However, if you know

Re: [JEXL] Ternary expressions?

2004-11-05 Thread Digby
Good idea - thanks. peter royal wrote: On Nov 3, 2004, at 12:46 PM, Digby wrote: Was just wondering if there's any chance JEXL will support ternary expressions at some point? It would be nice to have some sort of conditional support. (I notice this has been discussed on the dev group.) since i

Re: [JEXL] Ternary expressions?

2004-11-04 Thread peter royal
On Nov 3, 2004, at 12:46 PM, Digby wrote: Was just wondering if there's any chance JEXL will support ternary expressions at some point? It would be nice to have some sort of conditional support. (I notice this has been discussed on the dev group.) since i needed this and didn't feel like

[JEXL] Ternary expressions?

2004-11-03 Thread Digby
Was just wondering if there's any chance JEXL will support ternary expressions at some point? It would be nice to have some sort of conditional support. (I notice this has been discussed on the dev group.) /digby

Re: JEXL and instanceof

2004-10-26 Thread Dion Gillard
Hmmm not that I know of. instanceof is not a supported operator ATM in JEXL. On Tue, 26 Oct 2004 12:57:28 -0700, Andy Depue [EMAIL PROTECTED] wrote: Does the JEXL expression language have any way to determine if a particular variable is an instance of a particular class? For example

Re: JEXL AND or OR node.

2004-09-16 Thread Emmanuel Wurth
Hi To explain the context, we evalute java code snippet using JEXL, and in order to increase the speed of the query, since we do not need to have a complete evaluation of the expression, i would have like to be able to return from the And node, skipping the second call when this is possible

Re: JEXL AND or OR node.

2004-09-16 Thread Dion Gillard
To explain the context, we evalute java code snippet using JEXL, and in order to increase the speed of the query, since we do not need to have a complete evaluation of the expression, i would have like to be able to return from the And node, skipping the second call when this is possible

Re: JEXL AND or OR node.

2004-09-16 Thread Geoff Waggott
Hi, If you mean short-curcuit evaluation of these operators a la Java, JEXL already does this as the underlying code for the AND and OR node is just using the Java and || operators anyway. Regards, Geoff Emmanuel Wurth wrote: Hi To explain the context, we evalute java code snippet using JEXL

RE: JEXL

2004-09-15 Thread David Wynter
Hi Emmanuel, As a user of Jelly I can say that Jexl is still used in Jelly and Jelly is still moving forward. Since it is based on the JSTL standard with a few useful extensions I cannot see it changing much, but hey it is opensource so feel free to change it to suit your needs. David

Re: JEXL

2004-09-15 Thread Dion Gillard
Sure, it's being maintained. We've just done a long needed 1.0 release. What did you have in mind? How specifically would you change and or? On Wed, 15 Sep 2004 16:41:43 +0100, Emmanuel Wurth [EMAIL PROTECTED] wrote: Hi Does anybody knows if jexl is still maintained, i would like

Re: [VOTE] JEXL 1.0

2004-09-06 Thread Paul Libbrecht
+1 Le 6 sept. 04, à 01:38, Dion Gillard a écrit : The JEXL release candidate has been in the wild for a week or so now, and there have been no new issues raised. I'd like to cut the 1.0 release from CVS HEAD in the next few days. Here's my +1. [ ] +1 - Yes, Release the current code as 1.0. [ ] +0

[VOTE] JEXL 1.0

2004-09-05 Thread Dion Gillard
The JEXL release candidate has been in the wild for a week or so now, and there have been no new issues raised. I'd like to cut the 1.0 release from CVS HEAD in the next few days. Here's my +1. [ ] +1 - Yes, Release the current code as 1.0. [ ] +0 - Can't see why not [ ] -1 - Please don't

Re: [VOTE] JEXL 1.0

2004-09-05 Thread Geoff Waggott
[*] +1 - Yes, Release the current code as 1.0. Seems to be working fine. When 1.0 is out of the door presumably work can start on stuff which might make changes/additions to the grammar. -- === Geoff Waggott ZergSoft Tel: (052) 930-7790

JEXL and ant like properties

2004-08-31 Thread Dion Gillard
I know this is an issue for Maven and Jelly, specifically http://issues.apache.org/jira/browse/JELLY-87 I've got a solution that allows JEXL to handle the following: JexlContext jc = JexlHelper.createContext(); String value = Stinky Cheese; jc.getVars().put

Re: JEXL and ant like properties

2004-08-31 Thread Dion Gillard
meant to ask before was is this something people would like for the 1.0 release? All the JEXL tests work with this new feature, and it could make Jelly's life a little easier as well. On Tue, 31 Aug 2004 17:32:59 +1000, Dion Gillard [EMAIL PROTECTED] wrote: I know this is an issue for Maven

JEXL 1.0-RC1

2004-08-26 Thread Dion Gillard
The commons-jexl team is pleased to announce the Commons JEXL 1.0-RC1 release! http://jakarta.apache.org/commons/jexl/ Jexl is an implementation of the JSTL Expression Language with extensions. Changes in this version include: New Features: o Handle any size() method that returns an int

JEXL and a release - distribution

2004-08-24 Thread Dion Gillard
Whichever the outcome of the vote for either a beta or an RC, I've placed the Maven distribution that I'm planning to use at: http://cvs.apache.org/~dion/commons-jexl-1.0-beta-3-SNAPSHOT.zip http://cvs.apache.org/~dion/commons-jexl-1.0-beta-3-SNAPSHOT-src.zip http://cvs.apache.org/~dion/commons

Re: [VOTE] JEXL and a release

2004-08-23 Thread Geoff Waggott
Hi, I'm using JEXL in a XMLC-like XML transformation library I'm writing. Overall it seems very stable. There are a couple issues I've come across: - The overloaded + string concatenation operator only seems to work for string literals. - The in-built size method interferes with any size

Re: [VOTE] JEXL and a release

2004-08-23 Thread Dion Gillard
On Tue, 24 Aug 2004 10:52:28 +0900, Geoff Waggott [EMAIL PROTECTED] wrote: Hi, I'm using JEXL in a XMLC-like XML transformation library I'm writing. Cool. Overall it seems very stable. There are a couple issues I've come across: - The overloaded + string concatenation operator only seems

Re: [VOTE] JEXL and a release

2004-08-23 Thread Dion Gillard
On Tue, 24 Aug 2004 10:52:28 +0900, Geoff Waggott [EMAIL PROTECTED] wrote: Hi, I'm using JEXL in a XMLC-like XML transformation library I'm writing. Overall it seems very stable. There are a couple issues I've come across: - The overloaded + string concatenation operator only seems to work

Re: [VOTE] JEXL and a release

2004-08-23 Thread Geoff Waggott
Hi again Dion, Actually I'm a bit confused about by this. In the course of writing the test program for the size problem I wrote tests for the string concatenation as well and they worked. In my tests for the my library using JEXL it doesn't. I am wrapping the JexlContext to hide the dependency

  1   2   >