Setting Variable Scope

This page discusses - Setting Variable Scope

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

  1. page:  The scope of the page exists upto the current page only.
  2. request: The scope of request of will exists upto the request
  3. session: It is available in a particular session
  4. application: It is available for the applicaiton