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
Share on Google+Share on Google+

Setting Variable Scope

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



Discuss: Setting Variable Scope  

Post your Comment

Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image