标签:android os ar java 数据 sp 问题 c on
if (sqlConn.executeQuery("select * from user_test where name =‘" + username + "‘and password =‘" + password + "‘") != null) { resp.setContentType("text/xml; charset=UTF-8"); PrintWriter out = resp.getWriter(); out.print("用户" + username + "登陆成功"); out.flush(); out.close(); } else { resp.setContentType("text/xml; charset=UTF-8"); PrintWriter out = resp.getWriter(); out.print("用户名或密码不正确"); out.flush(); out.close(); }
标签:android os ar java 数据 sp 问题 c on
原文地址:http://www.cnblogs.com/shaochuyun57/p/4002163.html