반응형
Notice
Recent Posts
Recent Comments
Link
관리 메뉴

bro's coding

Servlet.ServletConfig/ServletContext 본문

[IT]/Servlet

Servlet.ServletConfig/ServletContext

givemebro 2021. 4. 6. 01:06
반응형

 - ServletConfig : 개별 서블릿(or JSP)이 실행하는 데 필요한 설정정보를 저장  
   개별 서블릿 당 하나 생성되는 객체 
   WAS(Web Container) 가 init 실행시점에 ServletConfig 객체를 전달해준다 
   초기 파라미터(init-param) , ServletContext 객체 주소값 등이 ServletConfig에 저장된다 
 
 - ServletContext : 웹 어플리케이션 당 하나 생성되는 객체      
     웹 어플리케이션 내의 모든 Servlet과 JSP는 ServletContext 자원을 공유해서 사용할 수 있다 (set 과 get 이 가능)
     웹 어플리케이션 최초 실행시점에 생성되고 어플리케이션 종료 직전에 소멸된다 

반응형

'[IT] > Servlet' 카테고리의 다른 글

Servlet.웹어플리케이션 실행 순서  (0) 2021.04.07
Servlet.WAS  (0) 2021.04.07
Servlet.Meta data  (0) 2021.04.07
Servlet.Servlet Annotation  (0) 2021.04.07
Servlet.ServletContextListener  (0) 2021.04.07
Servlet.LifeCycle  (0) 2021.04.05
Servlet.get/post  (0) 2021.04.02
Servlet.Deployment Descriptor(DD)  (0) 2021.04.02
Comments