Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

logic:iterate collection=""

Status
Not open for further replies.

ajaybrar

Programmer
Oct 2, 2003
9
AU
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=&quot;resVector&quot; id=&quot;tb&quot;>
//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
 
the attribute for your collection should be 'name' not collection.

try this.

<logic:iterate name=&quot;resVector&quot; id=&quot;tb&quot;>
//print bean values
</logic:iterate>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top