Pankti Desai

Greenhorn
+ Follow
since Feb 10, 2012
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Pankti Desai

Thank you for your reply.. But do you have any idea on using ajax here?? mean what code should i use in ajax to display this??
8 years ago
JSP
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.



    8 years ago
    JSP