jsp implicit objects (predefined java objects)
jsp implicit objects are java objects that the jsp container makes available to developers in each page so that developer can call them directly without being explicitly declared......
there are 9 pre defined objects in jsp... which are being discussed in this ppt with diagram representation and fewer points..... not full information in slides ... just prepared for presentation purpose.... so u have to do the research work from internet and you tube.....
this ppt is self prepared and taken reference form you tube
2. Introduction
Set of Predefined objects readily available
for use .
− out: JspWriter
− request: HttpRequest
− response: HttpResponse
− session: HttpSession
− config: ServletConfig
− application: ServletContex
− page: JSP page
− pageContext: Specialobject
3. Implicit Object- out
- An instance of JspWriter
- Writes statements to the page
- The java way to display text on the webpage
- Displaying dynamic data
5. Implicit Object- response
- Instance of HttpServletResponse
- Send response back to client(HTML in
most of the cases)
JSP1 Client
JSP1 JSP2 Client
Redirect to
jsp2
Send response to client
Send response to client
response.sendRedirect(“url”)
6. Implicit Object- session
Web App
Client
- Instance of HttpSession
- Retrieve and set the session attributes in JSP
- Remember the client across multiple requests
SESSION
Request 1
Response 1
Request 1
Response 2