application: The global scope, the entire application share, is the same webapp share in the deployment file, with a lifecycle of: application start to stop.
Session Scope: When the user first accesses a new session, the server can remember the session state. Life cycle: The session timed out, or the server-side forced the session to expire and the browser shut down.
Request : The requested scope is a request from the client.
Page : One of the JSP pages.
because for example some data is need to keep and pass, for example you make a website, a person log in, his information needs to save, if use application to save this user's information, then that is when this website restarts, namely the entire application is finished will disappear.
if the session is accessed, then the session expires, this person's information disappears, the session failure includes a timeout that can give the session set a life cycle, for example, only 1 minutes, if the person's information in 1 minutes, if more than 1 minutes, Information is gone, there is a way to let the session failure is to clear the session, such as the browser's clear session or the program can be forced to clear, this time the character information is not
with request, the client sends a request to the server, and when it is finished, the message is gone.
The last page is better understood, and there is no
Copyright NOTICE: This article is the original blogger articles, reproduced please indicate the source.
Application Session page Scope of JSP