I have two multiselect listboxes in my page. In List1 the data will be retrieved from DB and listed.I will have buttons to move the values from List1 to List2 and viceversa.
What happens is while submitting the page I want the values from list2 which are rearranged. But im getting the order in which I moved from list1 to list2.
I am using html:selectfor both lists
<html:select name="CustForm" property="custName" multiple="true" size="10">
ptionsCollection property="CustomerNames" value="custName" label="id"/>
I am having a customer form which has a arraylist CustomerNames. This arraylist has customer bean which has proeprties custName and id. The custForm also has a String custName.
<html:select name="CustForm" property="selectedCustName" multiple="true" size="10">
The custForm also has a String selectedCustNames from where I get the selected values in list2
Please let me know what am I doing wrong here.