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

Popular posts from this blog

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

matlab - error with cyclic autocorrelation function -

php - Using grpc in Laravel, "Class 'Grpc\ChannelCredentials' not found." -