其作用为在调用servlet请求之前初始化所有数据。
<listener>
<listener-class>
的标志出现在servlet 声明之前。
l servletcontextevent:
servletcontext getservletcontext()
l servletcontextattributelistenr:
void attributeadded(servletcontextattributeevent e)
void attributeremoved(servletcontextattributeevent e)
void attributereplaced(servletcontextattributeevent e)
l servletcontextattributeevent:
string getname( )
object getvalue( )
l httpsession: