Re: Evaluate a string property containing some OGNL expression

2008-02-27 Thread Laurie Harper
Maxx wrote: Back on this: testValue = // print 1 testValueName = // print testValue // print nothing!!! testValue (via xxxName) = That last line wont work because it's not a valid OGNL expression. However, looking back through the threa

Re: Evaluate a string property containing some OGNL expression

2008-02-27 Thread Dave Newton
--- Maxx <[EMAIL PROTECTED]> wrote: > Back on this: > > > > testValue = // print 1 > > > > > > testValueName = // print > testValue > > > > // print nothing!!! > > testValue (via xxxName) = > > Still no idea...? What are you trying to do? Dave

Re: Evaluate a string property containing some OGNL expression

2008-02-27 Thread Maxx
Back on this: > > testValue = // print 1 > > > testValueName = // print > testValue > > // print nothing!!! > testValue (via xxxName) = Still no idea...? Maxx - To unsubscri

Re: Evaluate a string property containing some OGNL expression

2008-02-15 Thread Maxx
Currently searching, I found something that might be related : it's a security fix about "recursive OGNL parsing" http://struts.apache.org/2.x/docs/s2-001.html (related to WebWork bug WW-2030). As I can read: *As of XWork 2.0.4, the OGNL parsing is changed so that it is not recursive* ... is my pr

Re: Evaluate a string property containing some OGNL expression

2008-02-15 Thread Maxx
Well... Enough if it would only be for a presentation purpose, and as said I already have & use this : the aforementioned multiple tags. But when you have, let's say, about 50 , each corresponding with a single myObj.someSubList(X).someSubMap[Y](Z).subObj or myObj.someSubList(X).someSubMap[

Re: Evaluate a string property containing some OGNL expression

2008-02-15 Thread stanlick
If the object graph is too deep to easily code to in the web page, perhaps you could "pull up" the low level lists with a method at the top of your graph? I understand the frustration with verbose evaluations to get a simple String! Let's suppose you have Country--->State--->City--->Street--->Li

Re: Evaluate a string property containing some OGNL expression

2008-02-15 Thread Maxx
Of course the JSP if for prensentation. But this kind of "complex" OGNL expression is computed as each iteration of multiple tags (that's why I put some X/Y/Z variables, each resulting of a %{#someStatus.index} expression). In fact, the myObj is exposed by the Action class through regular getMyO

Re: Evaluate a string property containing some OGNL expression

2008-02-15 Thread stanlick
Could you put the "tricky & deep" dive code in your action and use simple OGNL expressions on your pages? I find when web pages start looking like myObj.someSubList(X).someSubMap[Y](Z).subObj.fieldName I am writing complex code in the *wrong* place. Remember what the web page is for... presentati

Evaluate a string property containing some OGNL expression

2008-02-15 Thread Maxx
Hello, As I wasn't able to find this out at the moment, I'm posting my question here : Would it be possible, within Struts2 tags, to evaluate a (String) property which contains the OGNL expression referring to an other property?? Example : testValue = // print 1