web.xmlにおけるcontext-paramラベルの役割


1.    WEB     ,  ( :Tomcat)         web.xml.     : <listener></listener>   <context-param></context-param>

2.   ,      ServletContext(   ),  WEB               .

3.   <context-param></context-param>      ,   ServletContext.

4.    <listener></listener>     ,     .

5.      contextInitialized(ServletContextEvent args)     ,        
ServletContext = ServletContextEvent.getServletContext();
context-param   = ServletContext.getInitParameter("context-param  ");

6.    context-param    ,          .  ,      WEB           .         Servlet   .
    ,    ,  <context-param>        ,    WEB           .

7.  .                 .
        <context-param>           ,              .

8.            ,       ,       .           .           .

9....       <<Head First Servlet&JSP>>