• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Generating dynamic combo using java

 
Vinay Naidu
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have to generate a dynamic combo ..
ex: on selecting Department it should show the sub departments it have under its.
My front end is a jsp page if i select a department ..sub department should also be showm in the next combo by connecting to the database Oracle.
So if any one has a code to generate a dynamic combo please send it to
ice_1@rediffmail.com or post it here
Cheers
Vinay
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vinay
One option to this implementation would be to pre-load the association of Departments and Subdepartments in JavaScript Array and then just load the appropriate subdepartment list via JavaScript. This would make the application to be little 'un real' as we won't be querying the database each time we select a value for department from the combo but it will depend what exactly you want...Do you want to query database on every combo seletion event or not...
Regards
Maulin
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic