I am using the following code in my JSP page <html:select property="items" size="4" multiple="true"> <html ptions name="TestForm" property="items" labelProperty="items"/> </html:select>
I am using form and DTO getItems() and setItems(). Thransfering the data from the DAo to DTO and assigning to form in the action class using BeanUtils.copyProperies() method.
In the initial page load, all the items are displayed, highlightinh all values selected. That's fine. Based on the selected items, I am doing a search and the results are displayed in a seperate tab in the same page.
when the user goes back to the selection page, the previous selected items are to to be retainined.