SQL> select id from member where id='kkk'; 선택된 레코드가 없습니다.=> kkk는 사용이 가능하다SQL> select id from member where id='nup';ID-------------------- nup=> nup는 사용 불가능하다//pstmt=con.prepareStatement(sql); //NullPointerException위에 구문을 쓰지 않으면 NullPointerException 에러가 발생한다 public boolean checkId(String id) { boolean check=false;//중복계정 존재 유무 try { con=pool.getConnection(); sql="select id from member where id=?
"; //pstmt=con.prepareStatement(sql)..........
원문 링크 : JSP 회원가입 중복 id 체크, 회원수정 전까지 구현