지난 시간..

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();
%>

response

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

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

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