Re: Struts 2 obtaining a property value with no corresponding getXX() method

2011-02-01 Thread RogerV
Chris Pratt wrote: > > You might try . I'm not sure if it will work, > but OGNL has the ability to call methods by their full name. > > Thanks Chris, works a treat. Regards -- View this message in context: http://old.nabble.com/Struts-2-obtaining-a-property-value-with-no-corresponding

Re: Struts 2 obtaining a property value with no corresponding getXX() method

2011-02-01 Thread Chris Pratt
You might try . I'm not sure if it will work, but OGNL has the ability to call methods by their full name. Also, if you haven't overridden toString() you can just use which will automatically call Authority.toString() which by default returns .name(). (*Chris*) On Tue, Feb 1, 2011 at 5:03 AM,

Re: Struts 2 obtaining a property value with no corresponding getXX() method

2011-02-01 Thread Dave Newton
The first thing I'd try is calling the method on the object of iteration. Dave On Tue, Feb 1, 2011 at 8:03 AM, RogerV wrote: > > Hi > > I'm trying to iterate over a collection of Enums of type Authority using > > > >

Struts 2 obtaining a property value with no corresponding getXX() method

2011-02-01 Thread RogerV
Hi I'm trying to iterate over a collection of Enums of type Authority using , but I'm not getting any values displayed. Debugging shows that the call getUserDTO().getAuthorities()