AIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Wednesday, June 22, 2005 11:31 AM
Subject: Re: Accessing nested properties
Guess this is not standard way of doing it...
kinda wicked way... try this... might work
<% pageContext.setAttribute("fooBar",foos.getBar
Guess this is not standard way of doing it...
kinda wicked way... try this... might work
<% pageContext.setAttribute("fooBar",foos.getBar()); %>
//do something
HTH
Nitesh
> Fredrik Bostrom wrote:
>
>> Hi list,
>>
>> How do I access a nested property in an iterated object?
>>
>>
Thanks, but I couldn't wait any longer for a solution, so I rewrote the
whole page with jstl instead. Works like a charm :)
Regards,
Fredrik
rajiv verma wrote:
Try adding the "type" attribute to the logic:iterate tag.
I always do something like this:
and it works for me.
-Rajiv
On 6/2
Try adding the "type" attribute to the logic:iterate tag.
I always do something like this:
and it works for me.
-Rajiv
On 6/21/05, Fredrik Boström <[EMAIL PROTECTED]> wrote:
> No, the foo_array is an array of Foo. Each Foo object holds a Bar object
> wich holds a test field (see sample code). I
No, the foo_array is an array of Foo. Each Foo object holds a Bar object
wich holds a test field (see sample code). I'm trying to access the
test-field's value from within the iteration over Foo objects.
Regards,
Fredrik
Laurie Harper wrote:
Change property="bar.test" to property="test"; as
Change property="bar.test" to property="test"; assuming foos_array is an
array of Bar then, within the iterate tag body, 'foos' is bound to an
instance of Bar on each iteration.
L.
Fredrik Bostrom wrote:
Hi list,
How do I access a nested property in an iterated object?
I've got two classes
6 matches
Mail list logo