View Single Post
  #1 (permalink)  
Old 04-16-2008, 11:47 PM
aa74 aa74 is offline
Member
 
Join Date: Apr 2008
Posts: 3
aa74 is on a distinguished road
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
Reply With Quote
Sponsored Links