jsp - How to pass scriptlet value to text of combobox? -
i want pass value of name
text combobox. getting value of name
database.
{ string name=resultset.getstring(1); }
thanks.
here why should use jstl jsp scriptlets. should start use jstl
.
i've given scriptlet code here. can iterate resultset between select tag
, set values option.
<select name="username"> <% while(resultset.next()){ %> <option value="<%=resultset.getstring(1)%>"><%=resultset.getstring(1)%></option> <% } %> </select>
Comments
Post a Comment