当前位置:编程学习 > JSP >>

求JSP高手帮我看看这段代码

补充:psm.executeUpdate(); System.out.println("修改成功"); stmt=conn.createStatement(); rs=stmt.executeQuery("select * from userinfo"); out.println("<html>"+ "<head><title>用户信息</title></head>"+"<body>"); out.println(" <h1>修改后信息如下</h1><br><br>"); while(rs.next()){ out.print("用户:"); out.print(rs.getString(1)+"\t"); out.print("密码:"); out.print(rs.getString(2)+"\t"); out.print("电话:"); out.print(rs.getString(3)+"\t"); out.print("邮箱:"); out.print(rs.getString(4)+"\t"); out.print("地址:"); out.print(rs.getString(5)+"\t"); out.println("<br>"); } out.println("</body></html>"); out.close(); }catch(Exception e){} out.flush(); out.close(); } } 运行了以后弹出空白页面 有错误码
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,