Tuesday, June 11, 2013

Difference Between Servlet Context and Servlet Config.

The major difference between Servlet config and Servlet Context' s are:

1. Servlet Config is one per each servlet. Servlet Context is one per Entire application .

2. Servlet Config having local scope respective to Servlet. Servlet Context having application scope.

3. Servlet Config is one per servlet so we can mention initialization parameters in inside <Servlet>  tag of web.xml

Servlet Context one per application and it is not related to specific servlet so it is mentioned out side <Servlet> tag.

4. getServletContext() and get ServletConfig() used to get context and config objects.


No comments:

Hide Query By Example of PanelCollection on page load

Hi All, If there is a table with filterable is true. If you want to display QueryByExample then surround this table with panelCollection....