Hello friends
1ST PROBLEM:
i have a dropdown list "Countries" if i select any of one then the next dropdown list should get values " States" and then when i select one of the 'state' then next dropdown list should get the values of "Cities" in it.
hope you all understood my problem
Country : "DROPDOWN LIST"
state : "STATES"
cities : "CITIES"
so what i did is
<html:select parameter="country" onChange="javascript to submit the form">
is this correct method
and similary when i submit this values i should get the next dropdown list populate with STATES values
So thing is how can i do it pls
i need the javascript code and as well as explanation
............................................................................
2ND PROBLEM:
Also i need to can we get values from "VALUEBEANS" which is set in arraylist like
let the valuebean has variable 'country' and i got values into this variable
in while(rs.next())
{
..
.....
and added to the arraylist arraylist.add(thebeanname);
}
then in ACTIONCLASS i am doing this
request.setAttribute("alist",arraylist);
So question lies in
where i have to keep what in
<html:select parameter"???"
<html
ptionCollection parameter="???" or ???>