View Single Post
  #1 (permalink)  
Old February 17th, 2006, 04:02 AM
Edward King Edward King is offline
Authorized User
 
Join Date: Jul 2003
Location: , , .
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Default <html:option> question

I want to set a default value of select,such as follows:

<html:select property="loglevel" size="1">
<html:option value="0">0</html:option>
<html:option value="1" selected>1</html:option>
<html:option value="2">2</html:option>
<html:option value="3">3</html:option>
</html:select>

But when I run it,it raise error:
org.apache.jasper.JasperException: /index.jsp(8,48) equal symbol expected

I want to know how to make a select option was selected using Struts?