Monday, September 8, 2014
ServletContex
* ServletContex provides access to various resource and facilities,which are common to all servlet in application.Servlet Apis is used to set the information common to all servlet in application.
- ServletContex methods are used to get and set additional information about servlet.The methods used for dealing with context Attributes are:
+ getAttribute();
+ setAttribute();
* The following is a example of servlet.This example is used to count the numbers of page view.
This page is used to establish to servletcontext with name is 'count'.After that the value of this servletcontext is displayed.
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment