Hi Experts,
I need some help with the following issue. On my
jsp page, I have a multi-select
dropdown list (snapshot attached). When a user selects a particular entry in the
Customer Type dropdown list and hits the update button, That entry stays highlighted
when the page refreshs with new data.
Now the problem is that, User can also multiselect fields in Customer Type, meaning
CONS + CRU, IRU + CRU, or all three together. This time the fields that are picked by
the user doesn't highlighted after the page loads.
The multiple selects are stored inside a stringbuffer:
String[] multiLiabilityCode = request.getParameterValues("customerType");
On the my jsp page, this list is populated with:
<form:select path="customerType" items="${customerType}" multiple="true"/>
Where path="customerType" is the variable in abckend bean used to store the
single Customer Type (before implementing multiselect, i.e. request.getParamtr(customerType))