Hi All,
Please find my detailed requirement...
Requirement: i have 2 drop down list
1st dop down list is having countries --> Australia,India,UK
2nd drop down list is also having countries --> USA,Canada,Brazil
Both the drop down list are being displayed in
jsp using logic iterate tag
im doing a logic iterate over this and 2 drop down list's are displayed correctly
the problem is now that i need the default value for the 1st dropdown and 2nd drop down to be selected on the basis of the value in database.
Assuming
1> Default value of 1st dropdown list is Australia ,which is fetched from database
2> Default value of 2nd dropdown list is Brazil ,which is fetched frm database
How should i modify the code to achieve this...because i have 2 dropdownlists being iterated using logic:iterrate tag.
Could you help me with this issue since i dont know how to proceed. i have read post saying we need to set the value attribute,but how do i set the value dynamically in the
<html:select .....> struts tag.....
Please help me
Deepak