강의_2장_서블릿의 동작원리와 라이프 사이클.pdf

1. 서블릿 프로그램의 작성 법

20230405153846.png

html 문서에서 get 방식 호출하면 서블릿에서

<form method="get" action="servlet/Method">
	<input type="submit" value="get 방식으로 호출하기" >
</form>

html 문서에서 post 방식 호출하면 서블릿에서

<form method="post" action="servlet/Method">
	<input type="submit" value="post 방식으로 호출하기" >
</form>