在线等待,求教,急

jdone
06-06-22 0 94

<%

//加载驱动程序
Class.forName(CLASSFORNAME);
Connection con = DriverManager.getConnection(SERVANDDB,USER,PWD);

//String ss = session.getAttribute("U_ID");

String sql = "select classes,URL from vote where gh=gh and Flag= 0";
Statement stmt = con.createStatement();
ResultSet rst = stmt.executeQuery(sql);
//String Url = rst.getString("URL");

out.println("<table>");
out.println("<tr>");
out.println("<td>"+"未投票项目"+"</td>");
out.println("</tr>");

while(rst.next()){


out.println("<tr>");
out.println("<td>");
out.println("<a href='rst.getString("URL")'>"+rst.getString("classes")+"</a>");
out.println("</td>");
out.println("</tr>");



}
rst.close();
stmt.close();
con.close();

out.println("</table>");

%>


这里我想加我数据库里的一个URL字段怎么通不过呢?
请那位大哥指教小弟啊 不胜感激
就是这句话 out.println("<a href='rst.getString("URL")'>"+rst.getString("classes")+"</a>"); 中的"<a href='rst.getString("URL")'>"


应该怎么改写,求教小弟啊!