ADVANCED JAVA PROGRAMMING
Implicit Objects in JSP
Smt M.Jeevana Sujitha
Assistant Professor
Department of Computer Science and Engineering
SRKR Engineering College, Bhimavaram, A.P. - 534204
OBJECTIVES
The Objective of this lecture is
Implicit Objects in JSP
accessible to all JSP pages.
Types of implicit objects:
Implicit Objects in JSP
Request: Request objects are passed as parameters to the JSP service() method when a client request is made.
Example:
request.getParameter(“i/p control name”); Response: The response object is used to
carry the response of a client request after service() method is executed.
Example:
response.setContentType(“text/html”);
Implicit Objects in JSP
Application: This object provides the resources shared with in a web application.
Example: application.getServerinfo();
Session: This variable is used to access the current client session.
Example: session.setAttribute(); session.getAttribute();
Implicit Objects in JSP
Config: It helps in passing the information to servlet or JSP page during initialization.
Example: config.getServletName();
Exception: This object is for handling error pages and contain information about runtime error.
Out: It is used to call the methods related to I/O.
Example:
out.println(“welcome to JSP world”);
THANK YOU