struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Hardy <adam_ha...@altavista.com>
Subject Re: Newbie question: 2 synchronized lists on bean...
Date Fri, 15 Feb 2002 17:23:47 GMT
You need to put the tags for addresses and customers in pairs in the iterator loop. Thus the
indexID goes:

address, customer, iterate
address, customer, iterate
address, customer, iterate
etc.





On Fri, 15 February 2002, "Lilavois, Daniel" wrote:

> 
> Hi,
> I have a form bean with 2 lists populated via a database call...One is an
> array of addresses JavaBeans, the other is an array of customers
> JavaBeans...The 2 arrays are synch'd in the action (e.g. customerList[5]
> corresponds to addressList[5], etc.).
> 
> Now, on the JSP page, I iterate through and display the address list, but I
> have it setup that each row's onClick method goes to a Javascript method and
> I need it to pass a few parameters from the address, and a couple from the
> customer entry...
> 
> Now, my question is how to use the indexId from the iterate tag to get to
> the right entry on the CustomerList in a bean:write tag or somehow?  Thanks
> in advance.
> 
> Danny
> 
> --
> To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Find the best deals on the web at AltaVista Shopping!
http://www.shopping.altavista.com

--
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