Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to make select a drop down

Status
Not open for further replies.

csphard

Programmer
Joined
Apr 5, 2002
Messages
194
Location
US
How do I render the following struts code as a drop down? Is there an option I am suppose to use?

<html:select property="relation" size="10">
<html:option value="mom">Mom</html:option>
<html:option value="father">Father</html:option>
<html:option value="brother">Brother</html:option>
<html:option value="sister">Sister</html:option>
<html:option value="son">Son</html:option>
<html:option value="daughter">Dauther</html:option>
</html:select>

Howard
 
I figure it out.
<html:select property="relation" size="1">
<html:option value="mom">Mom</html:option>
<html:option value="father">Father</html:option>
<html:option value="brother">Brother</html:option>
<html:option value="sister">Sister</html:option>
<html:option value="son">Son</html:option>
<html:option value="daughter">Dauther</html:option>
</html:select>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top