What are implicit Objects available to theJSP Page?

Implicit objects are the objects available to
the JSP page. These objects are created by Web
container and contain information related to a
particular request, page, or application. The JSP
implicit objects are:
Variable Class Description
application javax.servlet.ServletContext The context
for the JSP page's servlet and any Web components
contained in the same application.
config javax.servlet.ServletConfig Initialization
information for the JSP page's servlet.
exception java.lang.Throwable Accessible only from an
error page.
out javax.servlet.jsp.JspWriter The output stream.
page java.lang.Object The instance of the JSP page's
servlet processing the current request. Not typically
used by JSP page authors.
pageContext javax.servlet.jsp.PageContext The context
for the JSP page. Provides a single API to manage the
various scoped attributes.
request Subtype of javax.servlet.ServletRequest The
request triggering the execution of the JSP page.
response Subtype of javax.servlet.ServletResponse The
response to be returned to the client. Not typically
used by JSP page authors.
session javax.servlet.http.HttpSession The session
object for the client.

Questions by abhinav_saraswat

Showing Answers 1 - 9 of 9 Answers

Sunil Kumar Yadav

  • Jan 4th, 2007
 

session, out, application, config, request, response, exception

  Was this answer useful?  Yes

Guest

  • Jan 6th, 2007
 

Apart from above

 Page, out ,configare also implcit objects

  Was this answer useful?  Yes

Tanha

  • Jan 20th, 2007
 

There are 9 implicit objects available:requestresponsepageContext sessionapplicationconfigoutexceptionpage

  Was this answer useful?  Yes

ashwani kumar rawat

  • Jan 23rd, 2007
 

JSP provides us several implicit objects using that we can use several attributes provided by jsp container

These objects are request, response, session, application, page etc.  We can apply all functions on these

objects which we have allready learnt in servlet like session.getSession(),

application.setAttributes("attribute name", "attribute property") etc.

  Was this answer useful?  Yes

SunilKumar Bavanla

  • Feb 3rd, 2007
 

objects that are available for the use in JSP documents without being declared first. These objects are parsed by the JSP engine and inserted into the generated servlet. The implicit objects re listed below request , response, pageContext, session, application, out ,config,page,exception

  Was this answer useful?  Yes

Bharath.M.A

  • Mar 26th, 2007
 

Implicit objects are the objects available to
the JSP page.
They are:
1.Out
2.Request
3.Response
4.Config
5.Context
6.Page
7.PageContext
8.Session

  Was this answer useful?  Yes

Sujin

  • Apr 3rd, 2007
 

These are the 9 implicit Objects: 

  • Application is the broadest context state available. It allows the JSP page's servlet and any Web components contained in the same application to share information.

  • Config allows initialization data to be passed to a JSP page's servlet.

  • Exception houses exception data to be accessed only by designated JSP "error pages."

  • Out provides access to the servlet's output stream.

  • Page is the instance of the JSP page's servlet processing the current request. Not typically used by JSP page authors.

  • PageContext is the context for the JSP page itself. It provides a single API to manage the various scoped attributes. This API is used extensively when implementing JSP custom tag handlers.

  • Request provides access to HTTP request data, as well as providing a context for associating request-specific data.

  • Response enables direct access to the HTTPServletResponse object and is rarely used by JSP authors.

  • Session is perhaps the most commonly used of the state management contexts. The concept of a "session" is that of a single user interacting with a Web application over several requests.
  •   Was this answer useful?  Yes

    ramesh

    • Aug 11th, 2007
     

     The implicit variables on jsp are
    1.out
    2.request
    3.response
    4.config
    5.page
    6.pagecontext
    7.session
    8.exceptions

    these implicit objects are no need to declare in jsp. we can directly use.
     these are involved in _jspService() method.

      Was this answer useful?  Yes

    There are 9 implicit objects available in jsp

    1) Page
    2)pagecontext
    3) request
    4) response
    5) application
    6) session
    7) out
    8)  config
    9) Exception

    these are created by container..No need to declare thse objects in jsp page.. we can directly use it.

      Was this answer useful?  Yes

    Give your answer:

    If you think the above answer is not correct, Please select a reason and add your answer below.

     

    Related Answered Questions

     

    Related Open Questions