HTTP状态500 - 在第11行处理JSP页面/checkusername.jsp时发生异常

时间:2017-04-30 18:34:18

标签: java jsp

我的代码是

<% 
 String sn=request.getParameter("ver");
 Class.forName("com.mysql.jdbc.Driver");
 Connection con =DriverManager.getConnection("jdbc:mysql://localhost:3306/publiccloud","root","root");
 Statement st=con.createStatement();
 ResultSet rs = st.executeQuery("select * from reg where Username='"+sn+"'");  // this is for name

0 个答案:

没有答案