SlideShare una empresa de Scribd logo
1 de 9
JSP
Implicit Objects
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
Implicit Object- out
- An instance of JspWriter
- Writes statements to the page
- The java way to display text on the webpage
- Displaying dynamic data
Implicit Object- request
-Instance of HttpServletRequest
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”)
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
Implicit Object-config & application
- config: Instance of ServletConfig
- application: instance of servletContext
JSP 1 JSP 1 JSP 1 JSP 1
Servlet context
config config config config
Implicit Objects - page & Exception
Main Page
Header page
Footer page
main.jsp footer.jsp
header.jsp
Exception- Used to generate the appropriate
response to the error condition.
<jsp:include page=”/header.jsp”/>
<jsp:include page=”/footer.jsp”/>
Implicit Object - pageContext
application
session
requesty
page
pageContext
least visible
most
visible

Más contenido relacionado

La actualidad más candente

Chapter 3 servlet & jsp
Chapter 3 servlet & jspChapter 3 servlet & jsp
Chapter 3 servlet & jsp
Jafar Nesargi
 
Java Servlets
Java ServletsJava Servlets
Java Servlets
Nitin Pai
 
Looping statement
Looping statementLooping statement
Looping statement
ilakkiya
 

La actualidad más candente (20)

Java Exception handling
Java Exception handlingJava Exception handling
Java Exception handling
 
Chapter 3 servlet & jsp
Chapter 3 servlet & jspChapter 3 servlet & jsp
Chapter 3 servlet & jsp
 
Java Server Pages
Java Server PagesJava Server Pages
Java Server Pages
 
Advance Java Topics (J2EE)
Advance Java Topics (J2EE)Advance Java Topics (J2EE)
Advance Java Topics (J2EE)
 
Ajax
AjaxAjax
Ajax
 
Networking in Java
Networking in JavaNetworking in Java
Networking in Java
 
Java Servlets
Java ServletsJava Servlets
Java Servlets
 
PHP - Introduction to PHP AJAX
PHP -  Introduction to PHP AJAXPHP -  Introduction to PHP AJAX
PHP - Introduction to PHP AJAX
 
Presentation on-exception-handling
Presentation on-exception-handlingPresentation on-exception-handling
Presentation on-exception-handling
 
Introduction to ajax
Introduction  to  ajaxIntroduction  to  ajax
Introduction to ajax
 
Ado.Net Tutorial
Ado.Net TutorialAdo.Net Tutorial
Ado.Net Tutorial
 
Php array
Php arrayPhp array
Php array
 
Servlets
ServletsServlets
Servlets
 
INTRODUCTION TO JSP,JSP LIFE CYCLE, ANATOMY OF JSP PAGE AND JSP PROCESSING
INTRODUCTION TO JSP,JSP LIFE CYCLE, ANATOMY OF JSP PAGE  AND JSP PROCESSINGINTRODUCTION TO JSP,JSP LIFE CYCLE, ANATOMY OF JSP PAGE  AND JSP PROCESSING
INTRODUCTION TO JSP,JSP LIFE CYCLE, ANATOMY OF JSP PAGE AND JSP PROCESSING
 
Threads in JAVA
Threads in JAVAThreads in JAVA
Threads in JAVA
 
Remote Method Invocation (RMI)
Remote Method Invocation (RMI)Remote Method Invocation (RMI)
Remote Method Invocation (RMI)
 
Introduction to php
Introduction to phpIntroduction to php
Introduction to php
 
Looping statement
Looping statementLooping statement
Looping statement
 
Jsp chapter 1
Jsp chapter 1Jsp chapter 1
Jsp chapter 1
 
JDBC: java DataBase connectivity
JDBC: java DataBase connectivityJDBC: java DataBase connectivity
JDBC: java DataBase connectivity
 

Destacado

DataBase Connectivity
DataBase ConnectivityDataBase Connectivity
DataBase Connectivity
Akankshaji
 
Secondary storage tutorial
Secondary storage tutorialSecondary storage tutorial
Secondary storage tutorial
Marvin Burke
 
Tango[VivekKumar_CS-C_6Sem_MIT]
Tango[VivekKumar_CS-C_6Sem_MIT]Tango[VivekKumar_CS-C_6Sem_MIT]
Tango[VivekKumar_CS-C_6Sem_MIT]
Vivek Kumar
 
Secondary storage management in os
Secondary storage management in osSecondary storage management in os
Secondary storage management in os
Sumant Diwakar
 
Java Presentation
Java PresentationJava Presentation
Java Presentation
pm2214
 
Post Implementation Review Template
Post Implementation Review TemplatePost Implementation Review Template
Post Implementation Review Template
Edmond Cheng
 

Destacado (20)

JSP
JSPJSP
JSP
 
Jsp element
Jsp elementJsp element
Jsp element
 
Jsp
JspJsp
Jsp
 
Servlet lifecycle
Servlet lifecycleServlet lifecycle
Servlet lifecycle
 
DataBase Connectivity
DataBase ConnectivityDataBase Connectivity
DataBase Connectivity
 
Java Server Pages
Java Server PagesJava Server Pages
Java Server Pages
 
Jsp
JspJsp
Jsp
 
Jsp with mvc
Jsp with mvcJsp with mvc
Jsp with mvc
 
Secondary storage tutorial
Secondary storage tutorialSecondary storage tutorial
Secondary storage tutorial
 
Tango[VivekKumar_CS-C_6Sem_MIT]
Tango[VivekKumar_CS-C_6Sem_MIT]Tango[VivekKumar_CS-C_6Sem_MIT]
Tango[VivekKumar_CS-C_6Sem_MIT]
 
JSP Error handling
JSP Error handlingJSP Error handling
JSP Error handling
 
Storage Management - Lecture 8 - Introduction to Databases (1007156ANR)
Storage Management - Lecture 8 - Introduction to Databases (1007156ANR)Storage Management - Lecture 8 - Introduction to Databases (1007156ANR)
Storage Management - Lecture 8 - Introduction to Databases (1007156ANR)
 
Secondary storage structure
Secondary storage structureSecondary storage structure
Secondary storage structure
 
Secondary storage management in os
Secondary storage management in osSecondary storage management in os
Secondary storage management in os
 
Java Presentation
Java PresentationJava Presentation
Java Presentation
 
Post Implementation Review Template
Post Implementation Review TemplatePost Implementation Review Template
Post Implementation Review Template
 
Google project tango - Giving mobile devices a human scale understanding of s...
Google project tango - Giving mobile devices a human scale understanding of s...Google project tango - Giving mobile devices a human scale understanding of s...
Google project tango - Giving mobile devices a human scale understanding of s...
 
J2EE and layered architecture
J2EE and layered architectureJ2EE and layered architecture
J2EE and layered architecture
 
Smartphone sensor and gesture
Smartphone sensor and gestureSmartphone sensor and gesture
Smartphone sensor and gesture
 
Jsp Introduction Tutorial
Jsp Introduction TutorialJsp Introduction Tutorial
Jsp Introduction Tutorial
 

Similar a Implicit object.pptx

Java web programming
Java web programmingJava web programming
Java web programming
Ching Yi Chan
 
JAVA EE DEVELOPMENT (JSP and Servlets)
JAVA EE DEVELOPMENT (JSP and Servlets)JAVA EE DEVELOPMENT (JSP and Servlets)
JAVA EE DEVELOPMENT (JSP and Servlets)
Talha Ocakçı
 
Lift 2 0
Lift 2 0Lift 2 0
Lift 2 0
SO
 

Similar a Implicit object.pptx (20)

J2EE jsp_03
J2EE jsp_03J2EE jsp_03
J2EE jsp_03
 
Jsp advance part i
Jsp advance part iJsp advance part i
Jsp advance part i
 
Jsp slides
Jsp slidesJsp slides
Jsp slides
 
Jsp slides
Jsp slidesJsp slides
Jsp slides
 
Java web programming
Java web programmingJava web programming
Java web programming
 
JSP - Java Server Page
JSP - Java Server PageJSP - Java Server Page
JSP - Java Server Page
 
Alexey Kupriyanenko "The State of Modern JavaScript and Web in 2020 - Real us...
Alexey Kupriyanenko "The State of Modern JavaScript and Web in 2020 - Real us...Alexey Kupriyanenko "The State of Modern JavaScript and Web in 2020 - Real us...
Alexey Kupriyanenko "The State of Modern JavaScript and Web in 2020 - Real us...
 
Lap trinh web [Slide jsp]
Lap trinh web [Slide jsp]Lap trinh web [Slide jsp]
Lap trinh web [Slide jsp]
 
JAVA EE DEVELOPMENT (JSP and Servlets)
JAVA EE DEVELOPMENT (JSP and Servlets)JAVA EE DEVELOPMENT (JSP and Servlets)
JAVA EE DEVELOPMENT (JSP and Servlets)
 
Jsp session 3
Jsp   session 3Jsp   session 3
Jsp session 3
 
JAVA SERVER PAGES
JAVA SERVER PAGESJAVA SERVER PAGES
JAVA SERVER PAGES
 
Integrating React.js Into a PHP Application
Integrating React.js Into a PHP ApplicationIntegrating React.js Into a PHP Application
Integrating React.js Into a PHP Application
 
TY.BSc.IT Java QB U4
TY.BSc.IT Java QB U4TY.BSc.IT Java QB U4
TY.BSc.IT Java QB U4
 
Lift 2 0
Lift 2 0Lift 2 0
Lift 2 0
 
Unit-5.pptx
Unit-5.pptxUnit-5.pptx
Unit-5.pptx
 
Ajax tutorial by bally chohan
Ajax tutorial by bally chohanAjax tutorial by bally chohan
Ajax tutorial by bally chohan
 
Jsp Notes
Jsp NotesJsp Notes
Jsp Notes
 
Lecture5
Lecture5Lecture5
Lecture5
 
Jsp config implicit object
Jsp config implicit objectJsp config implicit object
Jsp config implicit object
 
Basics Of Servlet
Basics Of ServletBasics Of Servlet
Basics Of Servlet
 

Último

Último (20)

Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 

Implicit object.pptx

  • 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
  • 4. Implicit Object- request -Instance of HttpServletRequest
  • 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
  • 7. Implicit Object-config & application - config: Instance of ServletConfig - application: instance of servletContext JSP 1 JSP 1 JSP 1 JSP 1 Servlet context config config config config
  • 8. Implicit Objects - page & Exception Main Page Header page Footer page main.jsp footer.jsp header.jsp Exception- Used to generate the appropriate response to the error condition. <jsp:include page=”/header.jsp”/> <jsp:include page=”/footer.jsp”/>
  • 9. Implicit Object - pageContext application session requesty page pageContext least visible most visible