commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kukosa, Tomas" <tomas.kuk...@siemens-enterprise.com>
Subject [jexl] using map as script parameter or local variable
Date Tue, 03 Jul 2012 13:12:09 GMT
Hello,

I use jexl 2.1.1 and I can not access map passed as a script parameter.

When I have the script with 'stat' parameter and following code:
  var a = state;  ## OK
  var b = state[3];  ## ERROR
the first assignment works OK but the second fails with the reason 'undefined variable state'
Also I can see that the interpreter tried to get 'state' variable from context.

The same result is seen if parameter is assigned to local variable and then it is accessed
through it.

Is it a bug or intentional behavior?

Regards,
  Tomas

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message