>>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:[EMAIL PROTECTED]
Sent: Wednesday, October 29, 2003 3:25 PM
To: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to