谢谢welshem(天堂客),我的ResultSet对象rs也是定义在<%! %>中的声明的,现在我想使用函数循环获取ResultSet对象的值。可是这个函数中一写rs.next()就出错。提示是:An error occurred at line: 20 in the jsp file: /result.jsp
Generated servlet error:
C:\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\result_jsp.java:24: unreported exception java.sql.SQLException; must be caught or declared to be thrown
while(rs.next())
^