java - Use cases for ServletContextAttributeListener -


i understand can use javax.servlet.servletcontextattributelistener if want know attribute in web app context has been added, removed or replaced. practical use cases listener? (i googled around while, not find practical examples listener.)

the javax.servlet.servletcontext interface represents view of web application filters , servlets belongs to. through servletcontext interface, servlet or filter can access raw input streams of web application resources, mechanism logging information, virtual directory translation, , application scope binding objects.

the application scope binding objects consists common objects servlets , filters. objects should consistent rules, change should checked. , 1 of cases javax.servlet.servletcontextattributelistener can used.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -