Prentice Hall and Sun Microsystems. Personal use only; do not redistribute.
16.6 Combo Boxes and List Boxes
411
Figure 16 17 Choosing options from a SELECT menu.
The second example shows a 
SELECT
 element rendered as a list box. If
more than one entry is active when the form is submitted, then more than
one value is sent, listed as separate entries (repeating the 
NAME
). For instance,
in the example shown in Figure 16 18, 
language=java&language=perl
gets added to the data being sent to the server. Multiple entries that share the
same name is the reason servlet authors need be familiar with the 
getParam 
eterValues
 method of 
HttpServletRequest
 in addition to the more com 
mon 
getParameter
 method. See Chapter 3 (Handling the Client Request:
Form Data) for details.
Languages you know:
Figure 16 18 A SELECT element that specifies 
MULTIPLE or SIZE results in a list box.
Second edition of this book: www.coreservlets.com; Sequel: www.moreservlets.com.
Servlet and JSP training courses by book's author: courses.coreservlets.com.






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

jsp web hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Jsp Web Hosting Cheapest Web Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved