1: String username = request.getParameter("username"); 2: String password = request.getParameter("password"); 3: PreparedStatement p=null; 4: try { 5: ...... 6: if (username==nill || password==null 7: || !isAuthenticatedUser(usename, password)) { 8: throw new MyException("인증 에러"); 9: } 10: p = conn.prepareStatement(" INSERT INTO employees VALUES(?,?)" ); 11: p.setString(1,username); 12: p.setString(2,password); 13: p.execute(); 14: ...... 15: }