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 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 would like
> to know if there is a more elegant way.
>
> Thanks a lot
> Harel Ben Attia
> Comverse Technologies Ltd.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
http://www.multitask.com.au/people/dion/
Chuck Norris sleeps with a night light. Not because Chuck Norris is
afraid of the dark, but because the dark is afraid of Chuck Norris

Reply via email to