im querying a database and i want to store the results in a combo box. im using the following code :
<select>
<option><%
while (rs1.next()) {
out.println(rs1.getString(1));
}
%>
</option>
</select>
my problem is the data stored in the combo box are concatenated in a single row.
example : value1 value2 value3 value4 value5
i want the result to be:
value1
value2
value3
value4
value5
pls help!
thanks!
<select>
<option><%
while (rs1.next()) {
out.println(rs1.getString(1));
}
%>
</option>
</select>
my problem is the data stored in the combo box are concatenated in a single row.
example : value1 value2 value3 value4 value5
i want the result to be:
value1
value2
value3
value4
value5
pls help!
thanks!