81,092
社区成员
发帖
与我相关
我的任务
分享
public class findpwd extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException {
ResultSet rs;
PrintWriter out = res.getWriter();
dbconn op = new dbconn();
String action = req.getParameter("action");
String findpwd_username = req.getParameter("findpwd_username");
if (action.equals("findname")){
rs = op.exeSql("select Question from User_info where UserName='"+findpwd_username+"'");
if(!rs.isAfterLast()){
out.print(rs.getString("Question"));
}
}
}
}