내용으로 건너뛰기
권남
사용자 도구
로그인
사이트 도구
검색
도구
문서 보기
이전 판
역링크
최근 바뀜
미디어 관리자
사이트맵
로그인
>
최근 바뀜
미디어 관리자
사이트맵
추적:
java:servlet
이 문서는 읽기 전용입니다. 원본을 볼 수는 있지만 바꿀 수는 없습니다. 문제가 있다고 생각하면 관리자에게 문의하세요.
====== Java Servlet ====== ===== 현재 Full URL ===== <code java> String file = request.getRequestURI(); if (request.getQueryString() != null) { file += '?' + request.getQueryString(); } URL reconstructedURL = new URL(request.getScheme(), request.getServerName(), request.getServerPort(), file); out.println(URL.toString()); </code> ==== Libraries ==== * [[http://tuckey.org/urlrewrite/|UrlRewriteFilter]] ===== NoCache ===== <code java> // 페이지 캐시를 막고, 뒤로가기 버튼을 눌러 올 경우에도 페이지 처리 요청을 새로 보낸다. httpResponse.setHeader("Cache-Control", "no-cache, no-store, must-revalidate, max-age=0"); httpResponse.setHeader("Expires", "0"); </code> ===== Cookie ===== * [[http:cookie|Cookie]] * [[http://docs.oracle.com/javaee/5/api/javax/servlet/http/Cookie.html|Cookie]] * ''setMaxAge'' : A negative value means that the cookie is not stored persistently and will be deleted when the Web browser exits. A zero value causes the cookie to be deleted. * ''-1'' : 세션 쿠키. 브라우저 켜져 있는동안 유지. 브라우저 끄면 삭제. * ''0'' : 즉시 삭제 * ''양수'' : 쿠키 유지 초(seconds) ===== Servlet Request Attribute ===== * ''javax.servlet.forward.request_uri'' : forward 시에 original URI
java/servlet.txt
· 마지막으로 수정됨: 2022/12/06 11:16 저자
kwon37xi
문서 도구
문서 보기
이전 판
역링크
맨 위로