์ค๋ฅ๊ฐ ๋์ ํ ๋งฅ๋ฝ์ ๋ชจ๋ฅด๊ฒ ์ด์ ใ
ใ
if(rightCode == true) { userDAO.setUserEmailChecked(userID); PrintWriter script = response.getWriter(); script.println(""); script.println("alert('์ธ์ฆ์ ์ฑ๊ณตํ์ต๋๋ค.');"); script.println("location.href = 'index.jsp'"); script.println(""); script.close(); return; // if๋ฌธ ์ข
๋ฃ, ์๋ else๋ฌธ์ ์คํ์ํค์ง์๊ณ ๋น ์ ธ๋๊ฐ ->unreachable code } else { PrintWriter script = response.getWriter(); script.println(""); script.println("alert('์ ํจํ์ง ์์ ์ฝ๋์
๋๋ค.');"); script.println("location.href = 'index.jsp'"); script.println(""); script.close(); return; } %> //if ~ else๋ฌธ ์ฌ์ด์ ์๋ return์ด ๋ค์ด๊ฐ ์ค๋ฅ๋ค์.