Friday, October 21, 2005

Explain the various implicit objects that are available?

Object

Class or Interface

Description

page

jsp.HttpJspPage

Page's servlet instance

config

ServletConfig

Servlet configuration information

pageContext

jsp.pageContext

Provides access to all the namespaces associated with a JSP page and access to several page attributes

request

http.HttpServletRequest

Data included with the HTTP Request

response

http.HttpServletResponse

HTTP Response data, e.g. cookies

out

jsp.JspWriter

Output stream for page context

session

http.HttpSession

User specific session data

application

ServletContext

Data shared by all application pages

The application, session and request implicit objects have the additional ability to hold arbitrary values. By setting and getting attribute values these objects are able to share information between several JSP pages.

0 Comments:

Post a Comment

<< Home