<logic:iterate id="impl" name="loadImpl" >
The way you have your tag at the moment would require a bean
on the session/request called 'loadImpl' that would need a method called
getImpl().
Regards
Ned
----- Original Message -----
Sent: Sunday, February 25, 2001 10:15
PM
Subject: Help with the Iterate tag
Hi all, I could use some help with the iterate tag. I am
passing a Hashtable to the iterate class. I loaded my hash table with
an integer object(incremented with every object I put
in the table) and I create an anonymous object. Now I have checked and
everything seems to be fine
up until the point that I need to iterate through the hash
table and pull the properties. It doesn't seem to be iterating through. I
checked my Hashtable
and it does have values, and the properties of my objects
are getting filled. So I guess I have 2 questions, what does the iterate class
use for key values or am I way off
track in populating my table like this?
Hashtable impl = new Hashtable();
Integer sKeyValue;
int keyValue = 0;
query = getRs();//getting the result
set from my query.
try{
while(query.next()){
impl.put(sKeyValue = new
Integer(keyValue), new Implementation()
}
keyValue = keyValue +
1;
}
query.close();
}
catch(SQLException e){
System.out.println("Error code: " + e.getErrorCode());
}
jsp...
<logic:iterate id="impl" name="loadImpl"
property="impl">
thanks in advance!!
Cameron