struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Ryan" <>
Subject logic:iterate question, for ArrayList of String arrays
Date Thu, 15 Apr 2004 03:00:06 GMT

I have a session object with is an ArrayList of String arrays, all of length 2. 
Basically just two strings 'code' and 'description'.

I want to iterate of the ArrayList for option tags in a dropdown list.

I have been using a For Loop, getting each element, casting it to String[] and 
then putting value[0] into the Option value and value[1] between the Option 

I know that using logic:iterate and bean:write would be more elegant. I am just 
start on how to pull out the elements in the String array.

Any advice?



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

View raw message