<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>JSP : request</title>
</head>
<body>
<%
String protocal = request.getProtocol();
String server = request.getServerName();
int port = request.getServerPort();
String clientip = request.getRemoteAddr();
String clienthost = request.getRemoteHost();
String url = new String(request.getRequestURL());
String uri = request.getRequestURI();
String contextPath = request.getContextPath();
String browser = request.getHeader("User-Agent");
out.println("protocal : " + protocal + "<br />");
out.println("server : " + server + "<br />");
out.println("port : " + port + "<br />");
out.println("clientip : " + clientip + "<br />");
out.println("clienthost : " + clienthost + "<br />");
out.println("url : " + url + "<br />");
out.println("uri : " + uri + "<br />");
out.println("contextPath : " + contextPath + "<br />");
out.println("browser : " + browser + "<br />");
%>
</body>
</html>
'JAVA > JSP & Servlet' 카테고리의 다른 글
JSP 기본 실습 : out, application 내장변수 (0) | 2013.03.08 |
---|---|
JSP 기본 실습 : 출력버퍼 크기지정 -getBufferSize- (0) | 2013.03.08 |
JSP 기본 실습 : 데이터 전송 받기2 [개인정보입력폼] -request- (0) | 2013.03.08 |
JSP 한글출력하기 (UTF-8) (0) | 2013.03.08 |
JSP 기본 실습 : 데이터 전송 받기 -request- (0) | 2013.03.08 |