A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Engineering
»
HTML, CSS and JavaScript
Author
Values
Kunal Lakhani
Ranch Hand
Joined: Jun 05, 2010
Posts: 609
posted
Nov 09, 2010 00:45:03
0
I am having problem in getting the value selected in the list shown below:
<SELECT name=Day> <OPTION value="" selected>- Select -</OPTION> <OPTION value=Sunday>Sunday</OPTION> <OPTION value=Monday>Monday</OPTION> <OPTION value=Tuesday>Tuesday</OPTION> <OPTION value=Wednesday>Wednesday</OPTION> <OPTION value=Thursday>Thursday</OPTION> <OPTION value=Friday>Friday</OPTION> <OPTION value=Saturday>Saturday</OPTION> </SELECT>
I am using request.getParameter, But no value is being displayed
How to retrieve the value selected?
Is this HTML code correct?
kunal
S Thiyanesh
Ranch Hand
Joined: Mar 19, 2006
Posts: 142
posted
Nov 09, 2010 03:57:31
0
Have you tried placing the values with in double quotes?(eg:<option value="sunday">Sunday</option>
Is this placed with in a form?
Kunal Lakhani
Ranch Hand
Joined: Jun 05, 2010
Posts: 609
posted
Nov 09, 2010 22:47:11
0
have not tried that.. will check it. Thanks
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Values
Similar Threads
JSF
Using JSTL Data Displayed In Browser Is Getting Fixed To 24576 Bytes(24 KB)
<s:select how to fill with key and value
null as key in HashMap ?
servlet+html
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter