Java Part V: JSP built-in objects

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
Here Insert Picture Description
but when I log in again, when they appeared in this situation (before the jsp page does not close):
Here Insert Picture Description
2. We try to reuse application
Here Insert Picture Description
but the second time I log will find (jsp page first login is not closed):
Here Insert Picture Description
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.

Since they come, like the point of a walk chant

Published 30 original articles · won praise 72 · views 10000 +

Guess you like

Origin blog.csdn.net/H_W_1212/article/details/90300209