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
Hi list,
How do I access a nested property in an iterated object?
I've got two classes like this (heavily simplified and stripped):
class Foo {
Bar bar = new Bar();
}
class Bar {
int test = 10; //any value
}
In my jsp-page, I'm iterating an array of foo-objects and I want to
access the t
Hi all
I have a problem with setting the values on a hierarchy of nested
properties.
I have an ActionForm which has a property A of type HashMap. A is keyed on
Strings, and each value of A is a Collection (ArrayList). This collection
contains objects of type B.
I am trying to iterate through th
Hi all
I have a problem with getting a hierarchy of nested properties to display.
I have an ActionForm which has a property A of type HashMap. A is keyed on
Strings, and each value of A is a Collection (ArrayList). This collection
contains objects of type B.
I am trying to iterate through the ke
9 matches
Mail list logo