This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
The application object refers to the ServletContext, i.e the environment in which the JSP pages belong, this does not have access to request, response, sesseion etc. pageContext is not in the servlets and has been added to JSP for convenience, according to SCWCD Study Kit, it has 3 main reasons for being: 1. It stores referece to the implicit objects. 2. Provides convenience methods to get and set attributes in different scopes, e.g. I have the following in my Tag: String corporateID= (String)pageContext.getAttribute("corporateID", PageContext.SESSION_SCOPE); 3. Provides convenience methods for transferring requests to other resources in web application (include and forward) hth
The secret to creativity is knowing how to hide your sources.