JSP Application Scope

Application Scope
1.    We can maintain this scope in servlet by using ServletContext object.  But in jsp’s by using application implicit object.
2.     The information stored in application scope is by default available for all web applications in the tomcat .
3.     application scope will be started at the time of context object creation  and ends at the time of context object destroy  .
4.     ServletContext  interface defines the following methods to perform  attribute management in application scope.
Methods:
1.    public void      setAttribute (String name, Object value)
2.    public  Object  getAttribute (String name)
3.     public  void      removeAttribute (String name)
4.    public  Enumeration getAttributeNames ( )

Thanks For Making This Possible! Kindly Bookmark and Share it.

Technorati Digg This Stumble Stumble Facebook Twitter

No comments:

Post a Comment