JSP implicit objects are 9 and given below:
- out (JspWriter).
- request (HttpServletRequest).
- response (HttpServletResponse).
- config (ServletConfig).
- application (ServletContext).
- session (HttpSession).
- pageContext (PageContext).
- page (Object).
- exception (Throwable).
JSP Out Implicit Object
- JSP out object is an instance of javax.servlet.jsp.JspWriter.
- It is used to write the data or content on client’s browser.
welcome.jsp:
<html> <head> <title>out implicit object example</title> </head> <body> <% out.print(“We can display message using out”); %> </body> </html> |