A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Java
»
Servlets
Author
Retrieve Data From A Drop Down Menu
JiaPei Jen
Ranch Hand
Joined: Nov 19, 2000
Posts: 1309
posted
Apr 02, 2004 13:24:00
0
For example, I have a drop down menu created this way:
<SELECT NAME="age" SIZE="5"> <OPTION VALUE="youth">10-19 <OPTION VALUE="genx">20-29 <OPTION VALUE="nolabel">30-39 <OPTION VALUE="boomers">40-49 </SELECT>
with a submit button.
When use a
servlet
to get what user's selection of choice from this menu, do I code this way:
String
cohort = request.getParameter("age");
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56153
13
I like...
posted
Apr 02, 2004 15:48:00
0
Did it work when you tried it?
[
Smart Questions
] [
JSP FAQ
] [
Books by Bear
] [
Bear's FrontMan
] [
About Bear
]
I agree. Here's the link:
http://zeroturnaround.com/jrebel
- it saves me about five hours per week
subject: Retrieve Data From A Drop Down Menu
Similar Threads
Struts and JSP
Font color in drop down menu
selection box values from database
servlet+html
Getting Parameters from form
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter