File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Display values in drop down menu Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Display values in drop down menu" Watch "Display values in drop down menu" New topic

Display values in drop down menu

swetha deshmukh

Joined: Jul 19, 2005
Posts: 9
There are 2 combo boxes(select-option) when i select a value(ChannelId) in a combo box then its related info should be displayed in other box(ProgrammeNames for that particular ChannelID).
David Ulicny
Ranch Hand

Joined: Aug 04, 2004
Posts: 724
Use javascript or submit the request to the server and send back the new page with the second combo.

SCJP<br />SCWCD <br />ICSD(286)<br />MCP 70-216
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

I have a demo app that does this on my site
Look for DynamicSelectLists.

Most of the work is done in servlets and beans but the logic would be no different in a model 1 JSP.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: Display values in drop down menu
It's not a secret anymore!