Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Combo box problem in jsp

 
venkatesh warlu
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
venkatesh warlu
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[Edit: please restrict promotional post to the Blatant Advertising forum]
[ July 05, 2008: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64830
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic