|
getting values from database in dropdown
Hello,
i have a dropdown menu containing names of countries when the user choose one country i want to extract the cities of that country from the embaded database into another dropdown menu how can i do that using JSTL ?
<form action="" >
<p>Select a country:</p>
<p><select name="origin" size="1">
<option selected ="selected"></option>
<option name="UK">UK</option>
<option name="France">France</option>
<option name="Italy">Italy</option>
</select> </p>
<p>Select a city:</p>
<p><select name="type" size="1">
<option selected ="selected"></option>
</select> </p>
<input type="submit" value="Submit" />
p.s i use Mckoi database embaded in tomcat
Thanks for your help
|