Populating my dropdown menu from MySQL database using jsp

I my database i have a table of users and i want everytime a user is added the dropdown menu gets updated, this is make updating of user's profile easy. I tried the one bellow but still get me 80 errors:

-connection String

<select name="userName" id="userName">

<% for(int i=1; i<=resultsList; ++i){%>

<option value="<%=out.println(rs.getUserName(1))%>"><%=out.println(rs.getUserName(1))%></option>

<option value="<%=out.println(rs.getUserName(i))%>"><%=out.println(rs.getUserName(i))%></option>

<%}%>

</select>

Pls i need help

[625 byte] By [Nino@Polya] at [2007-11-27 11:34:32]
# 1

CROSSPOST: http://forum.java.sun.com/thread.jspa?threadID=5198471

BigDaddyLoveHandlesa at 2007-7-29 16:57:46 > top of Java-index,Java Essentials,Java Programming...
# 2

> CROSSPOST:

> http://forum.java.sun.com/thread.jspa?threadID=5198471

>

It's not CROSSPOST, it's DOUBLEPOST!

;)

manuel.leiriaa at 2007-7-29 16:57:46 > top of Java-index,Java Essentials,Java Programming...
# 3

I stand corrected. But is there a single term that adequately described them both? I usually don't care if it's a crosspost versus a doublepost.

BigDaddyLoveHandlesa at 2007-7-29 16:57:46 > top of Java-index,Java Essentials,Java Programming...