Maybe I'm missing the point but both Jelly and JEXL let you add functions in
Java. For JEXL, the instructions are on the main project page. For a Jelly
script like Maven, it works like this:
<useBean class="a.s.d.Foo" var="foo" />
<useBean class="a.s.d.Bar" var="parameter" />
${foo.function(parameter)}
-----Original Message-----
From: Paul Libbrecht [mailto:[EMAIL PROTECTED]
Sent: Friday, September 10, 2004 5:19 PM
To: Jakarta Commons Users List
Subject: Re: Computing values for f(x,y) [math]
Le 10 sept. 04, � 07:59, J�rg Schaible a �crit :
>> Thank you very much, Shing!
>> That's exactly what I need, but unfortunately, it's not open
>> source ;( Does anybody know another API/framework like JEP
>> that is open source? Thanks!
> JEXL ?
> http://jakarta.apache.org/commons/jexl/
I always forget that...
Add to it, then, at least BeanShell which is somewhat more powerful!
(maybe too much)
One thing for JEXL which, I think, is missing, is the suggestion to be
able to add "functions" (not written in jexl necessarily, but as java
code-bits).
For example, having seen some Maven code-pieces recently, I can assure
everyone that having, for example, a function that does
relativeFile(originalFile,relativePath)
(and returns a file or a string) would help enormously!
(same for URLs)
Or... to return to our mathematical evaluation, one could, then, add
new mathematical functions to the syntax (e.g. "abs").
paul
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]