Share on Google+Share on Google+

Setting Variable Scope

Advertisement
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

Advertisements

Posted on: April 18, 2011 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Share this Tutorial Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Comments:0