본문 바로가기

카테고리 없음

Request 객체를 가져와서 Java 수행하기

반응형
String a = request.getParameter("a");
 
이렇게 Coding 해 놓고
 
자신을 호출 하게 끔
document.theForm.action = " 자신의 .jsp";
 
해놓고
document.theForm.submit();
 
이렇게 써 놓으면
 
submit시 get방식으로 전체 document Object들이 자신의 .jsp 로 날아간다.
 
이러게 한후  String a= request.getParameter("a");
 
이렇게 쓰면 이전의 document Object 들 중에서 a라는 Name을 가진 document Object를 찾아서 return 해준다.
반응형