File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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
rocket mass heater
subject: problem with dropdown
colored text in dropdown
[Solved] EL doesn't work as per expectation
displaying year through listbox
How to fix dropdown width
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-2013