・html에서 get을 리퀘스트 하는 방법 :
1.<a>태그의 href프로퍼티 이용 : <a href="/HWorld">
2.html 주소창에 직접 페이지 요청 : http://localhost:8090/helloworld/HWorld
・html에서 post을 리퀘스트 하는 방법 :
1.<input type="submit">
・톰캣 구동후 http://localhost:8090/helloworld/post.html 리퀘스트
・톰캣 was에 의해 html이 자바로 인식되어 리퀘스트 인지
・post <input>클릭시 <form action="PostMethod" method="post">에 의해http://localhost:8090/helloworld/PostMethod으로 맵핑. 이때 전송방식은 post
・ http://localhost:8090/helloworld/PostMethod 리퀘스트
・ http://localhost:8090/helloworld/PostMethod 리퀘스트에 대한 레스폰드(아래)
'frameworks > JSP_Servlet' 카테고리의 다른 글
Servlet 본격적으로 살펴보기(서버로 데이터를 전송하는 form태그, form내의 데이터를 전송하는 submit, html로부터 데이터를 받아들이는, request.getParameter("name"),한글처리) (0) | 2018.02.06 |
---|---|
Servlet 본격적으로 살펴보기 (servlet의 라이프 사이클, init, destroy 메서드, 전init/후destroy 메서드) (0) | 2018.02.04 |
[JSP/Servlet]servlet 맛보기 (0) | 2018.01.26 |
[JSP/Servlet]jsp 맛보기(자바 웹프로젝트 생성하기) (0) | 2018.01.25 |
[JSP/Servlet]강좌 전체 소개 및 웹 프로그래밍 (0) | 2018.01.25 |