View Single Post
  #2 (permalink)  
Old February 17th, 2006, 09:35 AM
longjava longjava is offline
Authorized User
 
Join Date: Jan 2006
Location: , , USA.
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to longjava
Default

You need to set the value attribute of the select tag.

The following code will fix your problem:
<html:select property="loglevel" value="1" size="1">
  <html:option value="0">0</html:option>
  <html:option value="1">1</html:option>
  <html:option value="2">2</html:option>
  <html:option value="3">3</html:option>
</html:select>

Notice how I set the value attribute of the select tag to 1, this will cause the value 1 in the option is rendered as selected.

Hope this help.