Nicole Bartley
Nicole Bartley

Reputation: 67

What classes represent the four different scopes: page, request, session, and application?

What classes represent the four different scopes: page, request, session, and application? I am unsure of the first one, but think the rest might be ServletRequest, HttpSession, and ServeltContext.

Upvotes: 0

Views: 859

Answers (2)

Aravind Yarram
Aravind Yarram

Reputation: 80192

application = javax.servlet.ServletContext
config = javax.servlet.ServletConfig
exception = java.lang.Throwable
out = javax.servlet.jsp.JspWriter
page = java.lang.Object
PageContext = javax.servlet.jsp.PageContext
request = javax.servlet.ServletRequest
response =  javax.servlet.ServletResponse
session =   javax.servlet.http.HttpSession

Upvotes: 2

C. K. Young
C. K. Young

Reputation: 223213

This will tell you:

<%= page.getClass() %>

:-P

Upvotes: 0

Related Questions