A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
problem with dropdown
Joined: Aug 01, 2005
Jan 11, 2007 05:37:00
<select name="Year" id="Year"><option value="<%=currentYear-1%>"><%=currentYear-1%></option><option value="<%=currentYear%>" selected><%=currentYear%></option><option value="<%=currentYear+1%>"><%=currentYear+1%></option> </select>
In the above dropdown, even if other options are selcted, only the default value (currentYear)gets submitted always. What can go wrong?
Joined: Nov 24, 2005
Jan 11, 2007 17:36:00
1. Use the "View Source" of your browser, and make sure that the generated html is correct.
2. Show us how you're trying to retrieve the value from the request.
All roads lead to JavaRanch
Don't get me started about those stupid
subject: problem with dropdown
How to fix dropdown width
populating one dropdown box depending on the value of other dropdown box
displaying year through listbox
colored text in dropdown
[Solved] EL doesn't work as per expectation
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014