struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Seyhan BASMACI (Internet Yazilimlari Yetkilisi)" <>
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 []
Sent: Wednesday, October 29, 2003 3:25 PM
Subject: iterate over a collection

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


Hot chart ringtones and polyphonics. Go to

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message