This is my jsp page to execute a query. When I run it, I get only 1 row from the courses table in the output. I was getting the right output a while ago, then I started working with the interface and realised that I don't get the correct output anymore. Can anybody point out the mistake? Thank you.
rs = statement.executeQuery("select * from courses");
<TABLE cellpadding="15" border="1" style="background-color: #ffffcc;">
<%
while (rs.next()) {
%>
<TR>
<TD><%=rs.getString(1)%></TD>
<TD><%=rs.getString(2)%></TD>
<TD><%=rs.getString(3)%></TD>
<TD><%=rs.getString(4)%></TD>
<TD><%=rs.getString(5)%></TD>
<TD><%=rs.getString(6)%></TD>
<TD><%=rs.getString(7)%></TD>
</TR>
}