struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aiken, Weston - Raleigh, NC" <WAi...@email.usps.gov>
Subject RE: <logic:iterate> question
Date Fri, 09 Aug 2002 16:23:21 GMT
Keith

Perfect, thanks a bunch.

Weston

-----Original Message-----
From: struts-user-return-42879-WAiken=email.usps.gov@jakarta.apache.org
at INTERNET 
Sent: Friday, August 09, 2002 12:08 PM
To: Aiken, Weston - Raleigh, NC; struts-user@jakarta.apache.org at
INTERNET
Subject: RE: <logic:iterate> question

Hey,
It's not a problem to pull a list out of an object.   My code is:

<logic:iterate id="hw" name="currentData" property="hwList"
type="com.moog.us.rur.data.Hardware">

This means that my app locates the object called "currentData", and
iterates
through an ArrayList within it (which is the "hwList").  The element of
the
iteration is stored in a page scope variable (the "hw").  The type
attribute
specifies the type of objects that are in the ArrayList.
I hope this helps ya out.

~ Keith
http://www.buffalo.edu/~kkamholz



-----Original Message-----
From: Aiken, Weston - Raleigh, NC [mailto:WAiken@email.usps.gov]
Sent: Friday, August 09, 2002 11:40 AM
To: struts-user@jakarta.apache.org
Subject: <logic:iterate> question


Consider the following scenario:

My Action class adds a Facility object to the request and forwards to a
JSP for presentation. The Facility object contains an array of
PhoneNumber objects.

My question is: Using struts tags, is it possible to pull the
PhoneNumber[] array out of the Facility object and then iterate through
them? If the PhoneNumber array were in the request by itself, then the
iterate tag would work fine, but the array needs to pulled out of the
Facility first.

Thanks for any help



--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message