This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "size of select tag" Watch "size of select tag" New topic
Author

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
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
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]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: size of select tag
 
Similar Threads
selecting an option in a select box from session variable
struts2 select and js
Fixed Header Select box problem
Horizontal scroll bar in List box
fixing size of select box and incorporating horizontal scroll bar