JS를 통한 후 제출 후 시뮬레이션
1 : 요청에 필요한 매개 변수가 너무 길어 Get에 의해 허용되는 최대 길이를 초과합니다.
2 : 주소 표시 줄의 매개 변수를 숨기고 싶습니다.
// 새 양식 양식 작성 문서를 만듭니다 .Write ( '<form name = myform> </form>'); var myform = document.forms [ 'myform']; myform.action = 'runempattendance'; myform.method = 'post'; var input = document.createElement ( 'input'); input.type = 'text'; input.name = 'userId'; input.value = 100; myform.appendChild (input); myform.submit (); // 이미 JSP에 존재하는 양식을 사용하고 다른 매개 변수를 추가합니다. var myform = document.forms [ 'listemployee']; // 양식의 namevar input = document.createElement ( 'input'); input.type = 'hidden'; input.name = 'currentpage'; input.value = 1; myform.appendChild (input); myform.method = 'post'; myform.submit ();