JSP useBean and Scope Types

The beans can be declared in JSP as following: Scope parameter indicates the context in which the bean should be made available. There are four different possible kinds of useBean scope, “page” scope being the default one.
  1. page: Availability: The bean is only available on the current page Storage:The bean is stored in the PageContext of the current page.
  2. request: Availability: The bean is only available for the current client request Storage: The bean is stored in the ServletRequest object. 
  3. session: Availability:The object is available to all pages during the life of the current HttpSession. Storage: The bean is stored in HttpSession object. 
  4. application: Availability: The bean available to all pages that share the same context. Storage: The bean is stored in ServletContext object