본문 바로가기

JSP/Reference

[JSP] PageContext 객체



PageContext

JSP 실행에 대한 context 정보를 담고 있는 객체

 

메소드

 

getException()

exception 객체를 리턴

getOut()

out 내부객체를 리턴

getsession()

session 내부객체를 리턴

getServletConfig()

config 내부객체를 리턴

getServletContext()

application 객체를 리턴

getPage()

page 내부객체를 리턴

getRequest()

request 내부객체를 리턴

getReponse()

reponse 내부객체를 리턴

forward(path)

다른 path에 해당하는 URL로 전달

include(path)

다른 path의 페이지를 현재 페이지에 포함

setAttribute(key,value,scope)

Scope의 시간동안 key의 값(value)를 저장

getAttributeNamesInScope(scope)

특정 scope의 모든 속성을 리턴

getAttribute(key,scope)

Key에 대한 scope를 리턴

removeAttribute(key,scope)

Key에 대한 scope를 제거

findAttribute(name)

Name에 지정된 속성의 scope를 찾음

getAttributeScope(name)

Name에 해당하는 scope를 리턴

'JSP > Reference' 카테고리의 다른 글

[JSP] Application 객체  (0) 2012.04.04
[JSP] Out 객체  (0) 2012.04.04
[JSP] Session 객체  (0) 2012.04.04
[JSP] Reponse 객체  (0) 2012.04.04
[JSP] Request 객체  (0) 2012.04.04