jjryu
2011. 8. 8. 22:18
* JSP / HTML 페이지 캐쉬 방지
HTML
<META http-equiv="Expires" content="-1">
<META http-equiv="Pragma" content="no-cache">
<META http-equiv="Cache-Control" content="No-Cache">
JSP
<%
response.setHeader("Cache-Control","no-store");
response.setHeader("Pragma","no-cache");
response.setDateHeader("Expires",0);
if (request.getProtocol().equals("HTTP/1.1"))
response.setHeader("Cache-Control", "no-cache");
%>
request // javax.servlet.http.HttpServletRequest
.setAttribute()
.getAttribute()
.removeAttribute()
.getParameter()
.getParameterNames()
.getRemoteHost()
.getRealPath()
.getContextPath()
<Context />
.path
.sendRedirect()
out // javax.servlet.jsp.JspWriter -> java.io.Writer
.println()
.print()
.write()
pageContext // javax.servlet.jsp.PageContext
.setAttribute()
.getAttribute()
.removeAttribute()
.forward()
.include()
session // javax.servlet.http.HttpSession
.invalidate()
.setAttribute()
.getAttribute()
.removeAttribute()
application // javax.servlet.ServletContext
.setAttribute()
.getAttributeNames()
.getAttribute()
.removeAttribute()
.getRealPath()
.getInitParameterNames()
.getInitParameter()
.log()
%CATALINA_HOME%\logs\localhost.YYYY-MM-DD.log
c.f. log()
exception
.getClass()
.getMessage()
.getMessage()
page
config
config
EL(Expression Language)
pageScope
requestScope
sessionScope
applicationScope
param
웹 브라우저에서 <FORM /> 엘리먼트를 통해 입력된 데이터
paramValues
header
headerValues
initParam
cookie
pageContext