자바

자바 중급 (JAVA-Web) 강좌 자료] pageContext 객체메소드

행복한짱짱이 2017. 7. 30. 07:44

자바 중급 (JAVA-Web) 강좌 자료] pageContext 객체메소드

 

자바 중급 (JAVA-Web) 강좌 자료] pageContext 객체메소드

 

 

 

실무개발자를위한 실무교육 전문교육센터학원
www.oraclejava.co.kr에 오시면 보다 다양한 강좌를 보실 수 있습니다.

 

 

 

 

pageContext 객체메소드

 

 *  내부객체를 얻는 메소드

   - getPage(), getServletConfig()

   - getRequest(), getResponse()

   - getOut(),getSession()

   - getServletContext():Application객체

   - getException() : exception객체

 * Scope에 따라 속성과 관계되는 메소드

 Abstract java.lang.Object.getAttribute(java.lang.String name)

    - “name”이라는 객체를 반환, 없을경우  null반환

Abstract vod removeAttribute(java.lang.String name)

    - “name” 이라는 이름의 객체를 삭제

Abstract vod setAttribute(java.lang.String name, java.lang.Object attribute)

    - attribute에 해당하는 “name” 이라는 이름의 객체생성