so i have a dropdown which i want to populate dynamically with the values from my database (which i am adding from another jsp page). the data is inserting to the database but somehow i am not able to populate the dropdown with the values which are present in my database. can some help me regarding this issue ?? i have already refferred to many documents here but not able to solve this issue this is what i have tried so far its hardcoded and i tried to achieve this by using foreach loop and do i have to write anything in backend??
<select class="ui dropdown" id = "form_country" name="country">
<option value="">Country</option>
<option value="india">India</option>
<option value="america">America</option>
<option value="australia">Australia</option>
<option value="nepal">Nepal</option>
<option value="russia">Russia</option>
<option value="canada">Canada</option>
<option value="england">England</option>
<option value="france">France</option>
<option value="germany">Germany</option>
<option value="japan">Japan</option>
</select>
<select class="ui dropdown" id = "form_country" name="country">
<c:forEach items = "${listCountry}" var = "coun">
<option value = "${coun.id}"> ${coun.m_country} </option>
</c:forEach>
</select>