File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Combo box problem in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Combo box problem in jsp" Watch "Combo box problem in jsp" New topic

Combo box problem in jsp

venkatesh warlu
Ranch Hand

Joined: Mar 11, 2008
Posts: 33
hi frnds

i have a problem in workin out one small module in my project.

i have one drop down box with values selected in it from my database.
i have few text boxes below. i want to display corresponding values from the database with respect to the option i selected in drop down box.
Can anyone help me out this problem.

this is how my code looks like :

i wanna know if scriplet will run inside jscript??? how to approach dis issue.

[BPSouther: Added code tags]
[ April 25, 2008: Message edited by: Ben Souther ]
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Hi venkatesh,

Welcome to Javaranch.
What you're trying to do is very common.
Search this, our HTML/Javascript forum, and/or Google for
'cascading select lists' or dependent 'select lists' and
you should find plenty of solutions.

This is commonly done using AJAX (which is discussed in our HTML forum).

One thing to keep in mind when asking or searching about this is that HTML (and thus JSP) does not
have a 'combo box' control.
It does have a select list which is commonly called a dropdown list.

[ April 25, 2008: Message edited by: Ben Souther ]

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
venkatesh warlu
Ranch Hand

Joined: Mar 11, 2008
Posts: 33
thanks ben .. since i m new to java ranch.. i didnt know about other forums. i will follow your guidelines.. i ll search as said.
Subhash Chandran

Joined: Jul 05, 2008
Posts: 5
[Edit: please restrict promotional post to the Blatant Advertising forum]
[ July 05, 2008: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63858

"Subu cc",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

JavaRanch Sheriff

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Combo box problem in jsp
It's not a secret anymore!