Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to populate one drop-down from another drop-down selection?

Posted on 2008-06-12
10
Medium Priority
?
215 Views
Last Modified: 2012-08-13
I have 1 drop-down (select box) that gets populated by a query from my db table.
This part is working fine.

I have a 2nd drop-down (select box) that I need to populate based upon the user's selection from the 1st drop-down

The first drop-down is for SYSTEM field from the query, and the 2nd drop-down should also come from a query based upon the SYSTEM'S associated SUBSYS field.

How can I do this?
Any help will be much appreciated.
0
Comment
Question by:g118481
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
  • +1
10 Comments
 
LVL 19

Expert Comment

by:Melih SARICA
ID: 21774230
ajax would solve ur problemm..
0
 
LVL 43

Accepted Solution

by:
David S. earned 1000 total points
ID: 21774515
0
 
LVL 1

Author Comment

by:g118481
ID: 21775290
Kravimir,

The link you provided as an example is in PHP.
I can only use Javascript and JAVA/JSP coding.

I want a script with two chained selects, the first one is for a main category, all the categories are extracted from a database.
The second select contains subcategories which are also selected from a database, based on the system from the first select.

Does anyone have an example in JAVA/JSP?
I really need to get this working ASAP.


0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 21776144
0
 
LVL 36

Assisted Solution

by:Loganathan Natarajan
Loganathan Natarajan earned 1000 total points
ID: 21776159
0
 
LVL 1

Author Comment

by:g118481
ID: 21777891
I am looking for a JAVA or JSP solution, only.
0
 
LVL 19

Expert Comment

by:Melih SARICA
ID: 21778117
check logudotcom 's solution
0
 
LVL 1

Author Comment

by:g118481
ID: 21790346
I have asked for an example that is JAVA or JSP.
I cannot install any new class files to support anything than basic JAVA or JSP.

If a solution is not possible using JAVA or JSP, then is there a solution, where I can have the user select the SYSTEM from the select box, then go back to the server for the SUBSYSTEMS for that SYSTEM, and return the user to the web page form and fill the SUBSYSTEM select box for the user to select?
0
 
LVL 36

Expert Comment

by:Loganathan Natarajan
ID: 21790687
It doesn't mean that you cannot to do it with purely with JSP ... it is very much easy to do with DWR such AJAX frameworks ... it is advanced also...  if u do it with JSP means it is again the old convention will be applied ..

0
 
LVL 1

Author Comment

by:g118481
ID: 21792831
Loqudotcom,

With your suggestion, I have to load/install class files, etc., correct?
Well, I cannot do this, as I am using WebSphere Application Server on the mainframe Z/OS.  It would take weeks to get the admin to install any files necessary to run DWR, and I do not have the luxury of time here.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
This video teaches viewers about errors in exception handling.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question