If you fill your combobox in the JSP, then simply reload the page with an additional request parameter containing the selected option. In your JSP code you must check the presence of this parameter and fill the 2nd combo calling your DAO layer.
If your fill your combobox in your Action and with Struts iteration tags. Submit your form to your action on the onChange of the 1st combobox. Then you will fill the corresponding ActionForm field and forward to your jsp.
Bj
PS : you should disable mail reading acknowledgment when posting to a mailing list.
viji.george a écrit :
hello friends,
I have a form in a jsp page, where i have 2 select box .
The values of both come from the database(db). On the selection of first select box, the values should be fetched from the database for the second on the basis of the value selected in the first.
When i load the page i call a action and then access the db with the BO and the DAO. Now how do i access the db from the jsp page and retain the value selected in the first select box.
eg
country <<select box>>
states <<select box>>
on the basis of selection of the country select box, the stated select box should be populated.
Thank you all in advance.
*Viji George*
<http://www.incredimail.com/index.asp?id=409&lang=9>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]