• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Mike London

Problem with multiselect dropdown list

Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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))
[Thumbnail for dropdown.PNG]
    Bookmark Topic Watch Topic
  • New Topic