Java web Application life cycle events and listeners in servlet technology

In this tutorial you will learn about the java web application application’s events and listeners. With application life cycle listeners and events, which are part of the Servlet API, you can notify any listeners when servlet contexts and sessions change. The life cycle listeners give the application developer greater control over interactions with ServletContext and […]

Continue reading


What are application specific parameters in servlet

Like the servlet specific parameters we have the application specific parameter which are available for whole application. You can specify the application specific parameters in web.xml as: <context-param> <param-name>database</param-name> <param-value>mysql</param-value> </context-param> The tag you have to put in web.xml You can retrieve the application specific parameter in any servlet by using the servlet context object […]

Continue reading