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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Array of <SELECT> form elements

Status
Not open for further replies.

CodeDaemon

Programmer
Jul 11, 2003
1
GB
I have a webpage that contains a group of <select> boxes all using the same property. In the actionForm I have setup an array of Strings to hold the selected item and it is populated correctly with the different values that have been selected.

However when the screen refreshes all the <select> boxes have the same value selected (not the ones that were chosen before posting the form).

The specs seem to say that the <select> property can only be an array if 'multiple' is set. But it works setting the data, the only problem is getting it back.

Is there any way around this problem ?

I'm using a JSTL <c:forEach> loop to display these <select> boxes.

Please help!!!

Allen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top