• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP combobox

 
Venkata Cherukuri
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two combobox (or list box. When I select one item in the first one, the second one should get populated- this data should be from the database. I need to do this using Struts.
[ February 12, 2004: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Regardless of your framework you will need to use the onselect handler of the select control (which is not really a combo-box) to:
a) re-submit the page so you can redraw it with the appropriate values for the selection
b) submit a request for the data into a hidden iframe whose response will be the Javascript necessary to re-populate the second select control with the data fetched from the db
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!