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

jsp页面编写问题

我再运行后,页面提示报错,错误的代码如下: An error occurred at line: 44 in the jsp file: /login-in123.jsp Duplicate local variable stmt 41: String sql = "select username,password from alluser where username='" + sUserName 42: + "' and password = '" + sPasswd + "'"; 43: 44: Statement stmt = connection.createStatement ( ); 45: ResultSet rs = stmt.executeQuery ( sql ); //返回查询结果 46: 47: //如果记录集非空,表明有匹配的用户名和密码,登陆成功 能帮我看看是哪错了吗?
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,