[05_param.jsp] <>제거

%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%
!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"
html
head
meta http-equiv="Content-Type" content="text/html; charset=UTF-8"
title 서블릿 /title
script type="text/javascript" src="param.js" /script
/head
body
form method="get" action="ParamServelt" name="frm"
아이디 : input type = "text" name = "id" br
나   이 : input type = "text" name = "age" br
input type="submit" value="전송" onclick="return check()"
/form
/body
/html


[param.js]

function check()
{
if(document.frm.id.value == "")
{
alert("아이디를 입력하세요.");
document.frm.id.focus();
return false;
}
else if(document.frm.age.value == "")
{
alert("나이를 입력하세요.");
document.frm.age.focus();
return false;
}
else if(isNaN(document.frm.age.value))
{
alert("숫자를 입력하세요.");
document.frm.age.focus();
return false;
}
else
{
return true;
}
}


jsp, js 파일을 작성하여 실행해도 유효성 체크가 안됩니다(자바스크립트가 실행 안됨)
아이디, 나이 둘 다 입력하지 않고 전송을 누르면 http 500 에러가 발생하고
나이만 입력해서 전송하면 "아이디를 입력하세요" 라는 알림 없이 서블릿으로 연결됩니다.

뭐가 문제인가요?