지난 시간..

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/ace0f543-249f-4a60-bbb3-bbc9aecbb77d/C8ACA811-6B89-46EC-8A04-212BE117852B.png

request

<%
	String contextPath = request.getContextPath();
	String contentType = request.getContentType();
	String remoteAddr = request.getRemoteAddr();
	String uri = request.getRequestURI();
	//StringBuffer url = request.getRequestURL();
	String servlet = request.getServletPath();
	String protocol = request.getProtocol();
	String method = request.getMethod();
	String domain = request.getServerName();
	int port = request.getServerPort();
	String queryString = request.getQueryString();
	String enc = request.getCharacterEncoding();
%>

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/97b6ed03-9f52-4cd1-8695-2189c9a9cf42/Untitled.png

response

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/fc16a92a-d0e3-4838-98e9-20ff76db7637/Untitled.png

sendRedirection 하면 resp.jsp 는 302번 코드가 뜨고 home.jsp 로 이동한다.

<%
	// response.sendRedirect("home.jsp");

	RequestDispatcher dis = request.getRequestDispatcher("home.jsp");
	dis.forward(request, response);
	
%>