A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
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
I agree. Here's the link:
subject: problem with dropdown
[Solved] EL doesn't work as per expectation
colored text in dropdown
How to fix dropdown width
displaying year through listbox
populating one dropdown box depending on the value of other dropdown box
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014