• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

displaying values in same jsp after user selects value in combo box

 
alex pandiyan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,i have a situation,where i have three comboboxes,based on first combo,the second combo has to be loaded and another combo(static combo).
Based on user selection and if he clicks submit button,i have to query and display samples on the jsp page.
Any sample links or sample code for this would be useful.
Thanks in advance
 
Chandra Sekhar
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"i have three comboboxes,based on first combo,the second combo has to be loaded and another combo(static combo)."
============================================================================
You can do this by having some client-side javascript function that you list in the first combo box's "onclick" or "onselect", to which you pass in both the selected item and the ID of the second combo box. You then have the javascript function populate the contents of the second combo box.

Rgds
Chandrasekhar S.
SCJP
 
alex pandiyan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
chandru,
thanks for the reply.
But,any javascript code snippet regarding the same would do a lot of good.
 
Chandra Sekhar
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
do a google search u'll find a lot of sites which give cut and paste java script code snipplets

check this..
http://www.javascriptkit.com/script/cut183.shtml

hope u'll find this useful

Chandrasekhar S.
SCJP
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic