For some reason I can't figure out what I am doing wrong when I am pre-populating a select list from a arraylist collection from my form.
My flow is as follows: when a user clicks a link, I call a action class that initializes the arraylists (on the form) from the database. That part is working fine; I am getting the data and populating the labelvalue object just fine and then setting the arraylist with all the labelvalue objects. As far as my jsp goes, this is what I have:
Now, can anyone tell me why this is not working without the setAttribute call? I know it is something simple that I am overlooking, but I just can't think of what it is... (as a side note, all data that I have - text fields, are working fine, it is just select lists)
Joined: Aug 29, 2008
I think your problem is that if you want to get the list from your form you needt to use the name and property attributes of the tag, rather than the collection attribute.