Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

2 comboboxes values of 2nd depends on 1st ,OPTION values from Database

hi all!
i am new to jsp, i have two comboboxes,in which values of 2nd combo box are linked two first combo box and we get values for both these boxes from database.

[B]table1[/B]
[CODE](pk)itemno:text
itemname:text (no duplicates)[/CODE]

[B]table2[/B]
[CODE](pk)itemno:text(duplicates)
(pk)pcode:text
pname:text(no duplicates)
[/CODE]

i want to display..

combobox1:itemname
combobox2:pname

[B]Note: [/B]Both Values of combobox are to be retrieved from database.

when user select itemname corresponding values of pname should be displayed. I went through google and some threads of this forum and found some info but there option values are not retrieved from database(given in code itself), but i'm puzzled from retrieving 1st combo values and select one to retrieve the values of 2nd combo.

Hope i have made my question clear. Thank You all!
Sign In or Register to comment.