Selecting an item in ComboBox

In my jsp, I've added the code for combobox with some initial items in it. I want one of the items to be shown as selected in the combobox without being selected by the user. How do I do that?
[200 byte] By [harinibiligiria] at [2007-11-27 4:39:05]
# 1

hi,

u can achieve tat by using selected attribute in option tag

for example

<select name="num">

<option value="1">1</option>

<option value="2">2</option>

<option value="3" selected>3</option>

<option value="4">4</option>

</select>

this ll hlp u

rgds

-venkat

noveleraa at 2007-7-12 9:49:37 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...