Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
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 ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Struts
Highlighting Multiple values in a Multi-Select dropdown using Struts2
Abdul Mujeeb Md
Greenhorn
Posts: 26
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I need to highlight multiple fields in a multi-select dropdown when the page is loaded.
<s:select name="strSelectedColors" size="1" cssStyle="width:100%; height:73" list="arlAllColors" listKey="top[0]" listValue="top[1]" multiple="true" />
List 'arlAllColors' contains all the colors.
String
[] Array 'strSelectedColors' contains the colors selected by the user.
When the page loads colors in 'strSelectedColors' array should be highlighted in the multi-select dropdown. How do I do this?
Thanks.
Arch enemy? I mean, I don't like you, but I don't think you qualify as "arch enemy". Here, try this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Help needed with onChange()
Problem with multiselect dropdown list
html:select with multiple = true????
Lisbox validation in struts
getting this Ajax code to work with jsp
More...