<%if(request.getAttribute("isExist") != null) {%>
<script>alert('이미 존재하는 ID 입니다.');</script>
<%} %>
<script>
$(document).ready(function() {
var isExist = <%=request.getAttribute("isExist")%>;
//문자열로 인식하지 않음 ex) "1"이 아니라 1(number)로 인식
if(isExist == 1) alert('이미 존재하는 ID 입니다.);
});
</script>