|
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
|
- Re: Help with the Iterate tag Cameron Ingram0
- Re: Help with the Iterate tag Ned Seagoon
- Re: Help with the Iterate tag Craig R. McClanahan

