struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Seyhan BASMACI (Internet Yazilimlari Yetkilisi)" <sbasm...@teb.com.tr>
Subject RE: iterate over a collection
Date Sun, 02 Nov 2003 17:22:05 GMT

>>The Vector container was adapted so that it could fit as a Collection and a List.
>>Keep in mind though, that the Vector container "WAS NOT" improved 
>>in the new Java 2 container libraries, but rather included only to support pre-Java
2 code. 

you should not use vector class, vector is a legacy class for java 2 container,
try with ArrayList, also ArrayList is a bit faster than Vector and is not thread safe,


-----Original Message-----
From: ajay brar [mailto:ajaybrar1@hotmail.com]
Sent: Wednesday, October 29, 2003 3:25 PM
To: struts-user@jakarta.apache.org
Subject: iterate over a collection


hi!
can someone tell me whats wrong with this?
I am placing a vector of TransactionBean in session as
session.setAttribute("resVector", resVector);
i then place an empty TransactionBean in session scope as well
TransactionBean tb = new TransactionBean();
session.setAttribute("transactionBean", tb);

in my jsp i have a logic:iterate tag that goes
<logic:iterate collection="resVector" id="tb">
//print bean values
</logic:iterate>
this gives me an error saying, it cant iterate over this type of collection.

could someone help and tell me what i am doing wrong

thanks
Ajay

_________________________________________________________________
Hot chart ringtones and polyphonics. Go to  
http://ninemsn.com.au/mobilemania/default.asp


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


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


Mime
View raw message