In JSP implicit objects simplifies the development of web application.
There are 9 JSP implicit objects available in JSP.
let’s take overview of it after that we will understand it with Example
This is the HttpServletRequest object associated with the request.
This is the HttpServletResponse object associated with the response to the client.
This is the PrintWriter object used to write any data to buffer.
This is the HttpSession object associated with the request.
This is the ServletContext object associated with application context.
This is the ServletConfig object associated with the page.
This encapsulates use of server-specific features like higher performance JspWriters.
This is simply a synonym for this, and is used to call the methods defined by the translated servlet class.
The Exception object allows the exception data to be accessed by designated JSP.
In case of servlet we have to get this all object using some another object
but in case of JSP this all object are available for each and Every JSP page.
PrintWriter out=resp.getWriter(); out.println("Hi This is Bhavesh Lakhani");
1 2 3 4 5 6
<% out.println("Hi This is Bhavesh Lakhani"); %>
Available JSP implicit objects and Its Type