@Daniel:
Of course I do not use OGNL for only selecting an entry from a simple Map.
My application uses OGNL for navigating thru a complex (unknown) graph and
doing calculations based on the values inside the graph.
I just gave a simple example to explain my needs...
@Chris:
I have tried this
Thanks Maurizio, this works perfectly!
If somebody else needs this:
Use parentheses if you need this inside a longer path (data graph), i.e.
Ognl.getValue( keyInOuterMap.(['a-b']).keyInNestedMap,m )
maurizio.cucchi...@gmail.com schrieb am 06.03.2012 10:54:36:
Von: Maurizio Cucchiara
Is there a way to mask operators in ognl so that they do not get
interpreted as operators?
Example:
I have a Map m which contains a key 'a-b'
If I write Ognl.getValue(a-b, m), Ognl tries to find a and b inside the
map and subtracts b from a.
But what I want is to get the key named 'a-b'.
I