What are the Different Scopes of a JSP Object ?

A JSP object, implicit or explicit, can have one of the following scopes...

Page : In this scope, the object is accessible from the page where it was created. Important point here is that when a user refreshes the page, the objects of this scope also get created again.

Request : In request scope, the object is accessible to the HTTP request that created this object.

Session : In this scope, the object is available throughout the same HTTP session.

Application : This is the widest scope. The object is available throughout the application in which JSP was created.



You May Interest

When is UnsupportedOperationException Thrown in Java ?

What is the Reason For Overriding equals Method in Java ?

What is the Difference Between JDK And JRE ?

What are the Java Collection Classes That Implement List Interfac ...

What is the Difference Between Fail-fast and Fail-safe Iterator i ...