Java Server Pages provides support for two types of object sharing. This object sharing is achieved using cooperating tags.
• In first approach, an object is given a name and page context is used to store this object. The page context is implicit object that can be accessed by tag handlers and JSP pages. The following command is used to access a shared object that has been given a name.
• In second approach of
pageContext.getAttribute( name, scope );