map the values from string array to list of values (option box to list)

Hi

iam displaying dynamically option boxes with corresponding accountnames .In side the option boxes I d1splayed vlaues 1.2.3....upto count(no. of ancounts)

Now I select any option values from dynamic number of option boxes . I need to match this option values with account names and option values

how is it possible

[345 byte] By [balu789a] at [2007-10-3 4:39:57]
# 1
It depends on the context. Are you talking about a Swing app, or a web page, or what?
paulcwa at 2007-7-14 22:43:53 > top of Java-index,Java Essentials,Java Programming...
# 2
jsp page only not in swings
balu789a at 2007-7-14 22:43:53 > top of Java-index,Java Essentials,Java Programming...
# 3
There's a taglib you can use to populate a select list from an array. Or maybe from a Collection so you'd have to convert it first. If you can't find it in the docs ask again tomorrow and I'll see if I can find it.
paulcwa at 2007-7-14 22:43:53 > top of Java-index,Java Essentials,Java Programming...
# 4
if possible send me a snippet so tht i can understan well
balu789a at 2007-7-14 22:43:53 > top of Java-index,Java Essentials,Java Programming...
# 5

I'm sorry, I was thinking of the HTML tag library that comes with Struts. In there, you can use the html:select and html:options tags to render a pull-down list populated from a collection. I don't know how you can do this outside of Struts. Maybe you can use the tag library anyway. Or maybe you can just switch to using Struts.

paulcwa at 2007-7-14 22:43:53 > top of Java-index,Java Essentials,Java Programming...