Re: struts2 property tag, how to dynamically set property name

2011-02-01 Thread Ken McWilliams
Thank you Dave, I just managed to resolve the issue in a slightly earlier post. Here is the action that backs the JSP. Now In my table I have a column which prints out db.localhost.test.Groups[name=ADMIN] because the object is db.localhost.test.Groups and it has a single property called name. Anot

Re: struts2 property tag, how to dynamically set property name

2011-02-01 Thread Dave Newton
Sorry; that was a draft and missed tab keystrokes--you already found it out :) Dave On Tue, Feb 1, 2011 at 6:49 PM, Dave Newton wrote: > On Tue, 2011-02-01 at 15:35 -0700, Ken McWilliams wrote: >> >>     >> ... >> >> I want propertyNames to be evaluated and the result used >> as the value for

Re: struts2 property tag, how to dynamically set property name

2011-02-01 Thread Dave Newton
On Tue, 2011-02-01 at 15:35 -0700, Ken McWilliams wrote: > >     > ... > > I want propertyNames to be evaluated and the result used > as the value for the iterator, not simply interpreted as a > normal list. Evaluated in what context? As a list of named properties on the item being iterated over

Re: struts2 property tag, how to dynamically set property name

2011-02-01 Thread Ken McWilliams
Well I don't know if MapPropertyAccess would do what I want but found an answer: The following iterates over a list of POJO's and the properties are determined for the particular POJO at run time and put in the propertyValues list. The following is able to look up the property value dynamically wi

Re: struts2 property tag, how to dynamically set property name

2011-02-01 Thread Ken McWilliams
It looks like I need to use a PropertyAccessor and ognl.MapPropertyAccessor specifically. Are there any demos in how to use it, can one use it directly from the JSP? On Tue, 2011-02-01 at 15:35 -0700, Ken McWilliams wrote: > Hello I have a list of properties from a POJO as found using > introspe