Setting Variable Scope
In this section we will learn about the different scope of the JSP variables.
While developing the program you can store the variables in different scope.
If you store the values in the application scope the variables will be available through the application.
The variables stored in page scope only available to that particular page.
In JSP we have four scopes
- page: The scope of the page exists upto the current page only.
- request: The scope of request of will exists upto the request
- session: It is available in a particular session
- application: It is available for the applicaiton