j2ee: Implicit Objects and their Scope [12/20] Previous pageContentsNext page

Objects can be manipulated in JSP.

Objects exist in different scopes:

Remember, and object created inside a method would only have scope in that method as well. In Java, we also limit scope by using the { }

An object with a given scope is accessible to pages that are in the same scope as the page where the object was created. (more on this later)

Certain objects are created implicitly for each page by the container:

All of these are predefined and can be used inside your JSP.

request

response

pageContext

session

application

out

config

page

exception

Previous pageContentsNext page