Hi,
I am making a program in
jsp servlet. There are three tables in database:
category , subcategory and items.
Their structure is like this ::
category 'A'
subcategory '1'
===>item 'i'
===>item 'ii'
===>item 'iii'
subcategory '2'
===>item 'iv'
category 'B'
subcategory '3'
===>item 'v'
===>item 'vi'
subcategory '4'
===>item 'vii'
category 'C'
.....
and so on.
I want to place 2 dropdown lists :: one which shows only category names n another
showing subcategory names..
the problem is, in subcategory dropdown i want only subcategories of the category i have
selected in first dropdown.
Example :: if i select category 'A' i want that second dropdown should display only
subcategory '1' and '2'.
any help regarding this will be appreciated.
Below is the code i have used for displaying category and subcategory dropdown in jsp page. but here
all subcategories are displayed irrespective of which category name i have selected.