Re: Re: [OGNL] Mask operators

2012-03-06 Thread Stephan . DCosta
@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

Antwort: Re: Re: [OGNL] Mask operators

2012-03-06 Thread Stephan . DCosta
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

[OGNL] Mask operators

2012-03-05 Thread Stephan . DCosta
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