| Author |
Dynamic selection in Combobox
|
hal arres
Ranch Hand
Joined: Jan 10, 2003
Posts: 30
|
|
Hi, I try to handle a dynamic selection in a combobox, but I got a problem. To add the combobox to a jsp page and fill it, I use the following code This combobox is on different pages and I want to show the previous selected item on each page, but I don't know how. I tryed the following code, but it doesn't work: Can anyone tell me, what I am doing wrong?
|
 |
Junilu Lacar
Bartender
Joined: Feb 26, 2001
Posts: 4115
|
|
I would use the html ptionsCollection tag instead. It encapsulates all the logic you've written using logic:iterate to display the options and the logic to select the option that matches the current value of the "selected" property.
Originally posted by hal arres: Hi, I try to handle a dynamic selection in a combobox, but I got a problem. To add the combobox to a jsp page and fill it, I use the following code
|
Junilu - [How to Ask Questions] [How to Answer Questions] [MiH]
|
 |
hal arres
Ranch Hand
Joined: Jan 10, 2003
Posts: 30
|
|
Hi, this is the first time, I heard of optionsCollection, but it is the better way to use ComboBoxes. Thank you Junilu Lacar mfg arres
|
 |
 |
|
|
subject: Dynamic selection in Combobox
|
|
|