1: …… 2: private static final String CONNECT_STRING = "jdbc:ocl:orcl"; 3: 4: public void doPost(HttpServletRequest request, HttpServletResponse response) 5: throws IOException, ServletException { 6: try { 7: String id = request.getParameter("id"); 8: String passwd = request.getParameter("passwd"); 9: 10: // passwd에 대한 복잡도 검증 11: if (passwd == null || " " .equals(passwd)) return; 12: if (!passwd.matches(" ") && passwd.indexOf("@!#") > 4 && passwd.length() > 8) { 13: // passwd 복잡도 검증 후, 가입 승인 처리 14: } 15: } catch (SQLException e) { …… } 16: catch (NamingException e) { …… } 17: }