A, JSP in nine built-in objects:
Input / output objects: Request, Response, OUT
scope communication target: the session, file application, the pageContext
Serevlet objects: Page
Error Object: Exception
Second, the four scopes:
page、request、session、application
Three, jsp built object, the setAttribute method getAttribute and the difference between the session and application
When the recent review, produced such a question, then how to solve it?
We see by example Details:
1. Here I would like to elaborate a session
but when I log in again, when they appeared in this situation (before the jsp page does not close):
2. We try to reuse application
but the second time I log will find (jsp page first login is not closed):
look, here's the number has changed.
IV Summary
The same point: these two variables can be values
different points: session is ended after a single session, and application can continue to value, so as to achieve growth in the number of statistics.