出现的错误:An error occurred at line: 113 in the jsp file: /borrowBook.jsp
rs2 cannot be resolved
110: 
111: if(rs!=null) rs.close();
112: 
113: if(rs2) rs2.close();
114: 
115: if(rs3) rs3.close();
116: 
An error occurred at line: 113 in the jsp file: /borrowBook.jsp
rs2 cannot be resolved
110: 
111: if(rs!=null) rs.close();
112: 
113: if(rs2) rs2.close();
114: 
115: if(rs3) rs3.close();
116: 
部分源代码:if(cno!=null)
{
//连接数据库
Class.forName("com.mysql.jdbc.Driver").newInstance();
String url="jdbc:mysql://localhost/Library?user=admin&password=jin";
Connection conn = DriverManager.getConnection(url);//在card表中查询该卡号是否存在
String sql1="select cno from card where cno = ? and flag !='注销'";
PreparedStatement stmt = conn.prepareStatement(sql1);
stmt.setString(1,cno);
ResultSet rs = stmt.executeQuery();if(rs.next())
{
String today = java.text.DateFormat.getDateInstance().format(new java.util.Date());   //取得当前日期
String sql2="select * from borrow where cno = ? and bno=? and (borrow_date.getDate()+30)>today";
PreparedStatement stmt2 = conn.prepareStatement(sql2);
stmt2.setString(1,cno);
stmt2.setString(2,bno);
ResultSet rs2 = stmt2.executeQuery();if(!(rs2.next()))
{
String sql3="select * from borrow where"+"(select count(*) from borrow where cno = ?)"+">="+"7";
PreparedStatement stmt3 = conn.prepareStatement(sql3);
stmt3.setString(1,cno);
ResultSet rs3 = stmt3.executeQuery();
.......
是不是不能有两个以及两个以上的ResultSet 类型的变量啊?