File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes size of select tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "size of select tag" Watch "size of select tag" New topic

size of select tag

Shankar Narayana
Ranch Hand

Joined: Jan 08, 2003
Posts: 134
I want the select box to show 10 values when it is populated, I tried to work around by setting the style and size attributes but could solve it.

To better understand what i require is the example of outlook express contact list box, where you can move left and right the contacts. The same functionality is required in my application.

[ August 05, 2004: Message edited by: Shankar Narayana ]

"Failure is not when you fall down; its only when you fail to get up again."
Lasse Koskela

Joined: Jan 23, 2002
Posts: 11962
You can set the size using the "size" attribute in your select element as follows:

Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
I agree. Here's the link:
subject: size of select tag
It's not a secret anymore!