사용자 도구

사이트 도구


java:servlet

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

다음 판
이전 판
java:servlet [2012/09/17 17:26]
kwon37xi 새로 만듦
java:servlet [2022/12/06 11:16] (현재)
kwon37xi
줄 13: 줄 13:
 </code> </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.1347870395.txt.gz · 마지막으로 수정됨: 2012/09/17 17:26 저자 kwon37xi