JSP Session Scope

Session Scope
1.    In Servlets this scope is maintained by HttpSession object, but in in Jsp maintained by session implicit object.
2.     Session scope will be started at the time of session object creation and ends at the time of session object destroy.
3.     The information is stored in session scope is by default available  to all servlets and  jsps available in that web application.
4.     HttpSession   interface defines the following methods to perform attribute management in session 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