1: …… 2: // private static final long serialVersionUID = 1L; 3: protected void doGet(HttpServletRequest request, 4: HttpServletResponse response) throws ServletException, IOException { 5: …… 6: } 7: 8: protected void doPost(HttpServletRequest request, HttpServletResponse response) { 9: // 외부로 부터 입력을 받는다. 10: String pass = request.getParameter("psw"); 11: // 입력값을 체크한다. 12: if (pass != null) { 13: if (-1 != pass.indexOf("<")) 14: System.out.println("bad input"); 15: else { 16: // password를 힙 메모리에 저장하지 않아야 한다.. 17: //String str = new String(pass); 18: } 19: } else { System.out.println("bad input"); } 20: } 21: ……