Click to See Complete Forum and Search --> : Generate ListBox dynamically in struts


laukik
05-11-2006, 10:23 AM
Hi All,
I am new to struts and want to make application like,
There are two comboboxes (listbox) . One is for Country and second is for State/Region of that country. I need to generate the State Listbox depending on selection on Country ListBox.
Both List box will fetch the values from Database.
I dont want to submit my form on onChange event of Country listbox.
If there is another alternate , then pls tell me,.
Regards,

Khalid Ali
05-11-2006, 03:35 PM
well u have to get data from somewhere right?
so if u don't wnat to go back to db then u will have to pull all of the data in the page(may be in javascript array or something) when u create the page