My Jsp Form is
myinsert code is :
Please Tell me how to retrieve data from database and show in Combo Box in Jsp page
Code:
<form:form action="Imei.obj" modelAttribute="imei">
<!-- to display error message from action method if any -->
<form:select id="brand" path="brand">
<form:option value="1">One</form:option>
</form:select>
<!--<input type="submit" value="Login" /><br />-->
</form:form>
myinsert code is :
Code:
String sql = "insert into imei(brand_name,model_number,imeiNo,date_added)"+"values(?,?,?,?)";
jdbcTemplate.update(sql, new Object[] { imei.getBrandName(),imei.getModelNo(),imei.getImeiNo(),imei.getAddedDate()});