Re: Extending base class and accessing implementation's fields in Struts 2

2012-12-03 Thread Lukasz Lenart
2012/12/3 Eric Lentz : > I'm almost there. I didn't suspect that it would work that way with the > iterator. Should have tried it first! Thanks Dave. > > On the way back, such as in a post, if BaseObject is an interface or > abstract, as I'm hoping for it to be, then Struts tries to instantiate the

Re: Extending base class and accessing implementation's fields in Struts 2

2012-12-03 Thread Eric Lentz
I'm almost there. I didn't suspect that it would work that way with the iterator. Should have tried it first! Thanks Dave. On the way back, such as in a post, if BaseObject is an interface or abstract, as I'm hoping for it to be, then Struts tries to instantiate the BaseObject type, which it can't

Re: Extending base class and accessing implementation's fields in Struts 2

2012-12-03 Thread Dave Newton
You're making OGNL calls against an object; it doesn't care about the type--if you access foo.bar it'll call getBar() on foo, setBar() on submission. Dave On Mon, Dec 3, 2012 at 11:19 AM, Eric Lentz wrote: > I have > List foo > > The list is of type BaseObjectImpl > > BaseObject has fields: > St

Extending base class and accessing implementation's fields in Struts 2

2012-12-03 Thread Eric Lentz
I have List foo The list is of type BaseObjectImpl BaseObject has fields: String a String b BaseObjectImpl has fields: String c String d Now I'm in a JSP and want to iterate foo (using ), accessing fields c and d (inside iterator using , for example). How? As far as Struts knows I'm dealing wit