This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Combo box problem in jsp" Watch "Combo box problem in jsp" New topic
Author

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
Sheriff

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.

-Ben
[ 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
Greenhorn

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
Marshal

Joined: Jan 10, 2002
Posts: 60788
    
  65

"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.

Thanks!
bear
JavaRanch Sheriff


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Combo box problem in jsp
 
Similar Threads
inserting data to a table
Problem displaying a dynamic table on a JSP....
Resetting Values in JSP Page
Getting search results on same search page
Returning a result set in an html form