NMN NMN -4 years ago 97
Java Question

I want to fetch value from mysql db and show it in dropdown box in jsp

I am able to fetch value normally but it is not rendering in dropdown box or even textbox. Plz help. Thankx in advance.



<tr class="rows">
<td width="150">
Application Name:
</td>
<td>
<select class="form-control" name="applicationName" path="applicationName">
<option value="${applicationname}"></option>
<option value="ABC">ABC</option>
<option value="DEF">DEF</option>
<option value="GHI">GHI</option>
<option value="JKL">JKL</option>
<option value="MNO">MNO</option>
</select>
</td>
<td>
${applicationname}
</td>
</tr>





enter image description here

Answer Source
<td>
    <select class="form-control" name="applicationName" path="applicationName">
    <option value="${applicationname}">${applicationname}</option>
    <option value="ABC">ABC</option>
    <option value="DEF">DEF</option>
    <option value="GHI">GHI</option>
    <option value="JKL">JKL</option>
    <option value="MNO">MNO</option>
    </select>
</td>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download