• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Combo box problem in jsp

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
[Edit: please restrict promotional post to the Blatant Advertising forum]
[ July 05, 2008: Message edited by: Bear Bibeault ]
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Dinner will be steamed monkey heads with a side of tiny ads.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic