SlideShare a Scribd company logo
1 of 21
By..,
K.Rajalakshmi , Msc-IT
Department of CS & IT
Nadar saraswathi college of arts and science,
Theni
CONCEPTS OF ADVANCED JAVA
PROGRAMMING JAVA SCRIPTS-
SERVLET-JDBC-ETB-JSP
• Introduction
• Java script
• Servlet
• JDBC
• ETB
• JSP
INTRODUCTION
• Java is an high level programming language developed by SUN
MICROSYSTEM.
• It was originally designed for developing programs for set-top
boxes and handled devices but later became a popular choice
for creating web application.
• The java syntax is similar to C++ but is strictly an object oriented
programming language .
JAVA SCRIPT:
• Java script is a scripting language that enables to create
dynamically updating content, control multimedia, animate
images and pretty much everything else…
SERVLET:
• Servlet technology is used to create a web application
(resides at server side and generate a dynamic web
page)
• Servlet technology is robust and scalable because of
java language
WHAT IS SERVLET?:
• Servlet is an API that provides many interface and classes
including documentation.
• Servlet is an interface that must be implemented for creating
any servlet
• Servlet is a class that extends the capabilities of the server and
responds to the incoming request. It can respond to any
request.
• Servlet is a web component that is deployed on the server to
create a dynamic web page.
SERVLET MODEL:
JDBC:
• JDBC API is a java API that can access any kind of tabular data
especially data stored in a relational database.
• JDBC works with java on a variety of platform, such as windows,
Mac OS, and the various version of UNIX.
PURPOSE OF LEARNING JDBC:
• JDBC stands for Java Data Base Connectivity
• Its is an database independent connectivity between the java
programming language and a wide range of database
• Some commonly associated JDBC database usages are:
• Making a connection to a database
• Creating SQL or MYSQL statements
• Executing SQL or MYSQL queries in the database
• Viewing & modifying the resulting records
APPLICATIONS OF JDBC:
• It is specification that provides a complete set of interface that
allows for portable access to an underlying database
• Java can be used to write different types of executable such as:
• Java application
• Java applet
• Java servlet
• Java server pages(JSPs)
• Enterprise JavaBeans(EJBs)
• All these are able to use a JDBC driver to access a database
and take advantage of the stored data.
ETB :
• ETB stands for End of Transmission Block
• A communication control character used to indicate the end of a
block of data for communication purposes
• ETB is used for blocking data where the block structure is not
necessarily related to the processing format
JSP :
• JSP technology is used to create web application just like
servlet technology
• It can be thought of as an extension to servlet because it
provide more functionality than servlet such as expression
language, JSTL etc.,
ADVANTAGE OF JSP OVER SERVLET:
• There are many advantages of JSP over the servlet they are:
• Extension to servlet
• Easy to maintain
• Fast development no need to recompile and redeploy
• Less code than servlet
LIFECYCLE OF A JSP PAGE:
• The JSP pages follow these phases:
• Translation of JSP page
• Compilation of JSP page
• Class loading
• Instantiation
• Request processing
• Destroy
CREATING SIMPLE JSP PAGE:
• To create the first page, write some HTML codes as given below
and save it by .jsp extension
• To save this file as index .jsp
• Put it in a folder and paste the folder in the web apps directory
in apache tomcat to run the jsp page
LIFE CYCLE OF JSP:
SIMPLE EXAMPLE:
<html>
<body>
<% out. Print(2 * 5):%>
</body>
</html>
o/p:
It will print 10 on the browser
HOW TO RUN A SIMPLE JSP PAGE:
• Start the sever
• Put the jsp file in a folder and deploy on the server
• Visit the browser by the url
• http://localhost:portno/contextroot/jspfile
• For EG:
http://localhost:8888/myapplication/index.jsp
Thank you …

More Related Content

What's hot

Jive the renovation of Aswing
Jive the renovation of AswingJive the renovation of Aswing
Jive the renovation of Aswingantopensource
 
Complete integration with mule esb
Complete integration with mule esbComplete integration with mule esb
Complete integration with mule esbSon Nguyen
 
What is Mean Stack Development ?
What is Mean Stack Development ?What is Mean Stack Development ?
What is Mean Stack Development ?Balajihope
 
Meanstack Introduction by Kishore Chandra
Meanstack Introduction by Kishore ChandraMeanstack Introduction by Kishore Chandra
Meanstack Introduction by Kishore ChandraKishore Chandra
 
Jeetrainers.com coursejspservlets00
Jeetrainers.com coursejspservlets00Jeetrainers.com coursejspservlets00
Jeetrainers.com coursejspservlets00Rajesh Moorjani
 
Java Web services
Java Web servicesJava Web services
Java Web servicesvpulec
 
Java Training in Chennai
Java Training in Chennai Java Training in Chennai
Java Training in Chennai raj esaki
 
Java DataBase Connectivity API (JDBC API)
Java DataBase Connectivity API (JDBC API)Java DataBase Connectivity API (JDBC API)
Java DataBase Connectivity API (JDBC API)Luzan Baral
 
What is Mule ESB
What is Mule ESB What is Mule ESB
What is Mule ESB Nam Le Dinh
 
NetBeans Platform for Rich Client Development
NetBeans Platform for Rich Client DevelopmentNetBeans Platform for Rich Client Development
NetBeans Platform for Rich Client DevelopmentWidura Wijenayake
 
Java Database Connectivity
Java Database ConnectivityJava Database Connectivity
Java Database Connectivityireneconje
 
Basic method for Java EE Web Profile
Basic method for Java EE Web ProfileBasic method for Java EE Web Profile
Basic method for Java EE Web ProfileKenji HASUNUMA
 
Web programming and services
Web programming and servicesWeb programming and services
Web programming and serviceslaibamaqsood
 

What's hot (20)

Jive the renovation of Aswing
Jive the renovation of AswingJive the renovation of Aswing
Jive the renovation of Aswing
 
Mule esb overview
Mule esb overviewMule esb overview
Mule esb overview
 
Complete integration with mule esb
Complete integration with mule esbComplete integration with mule esb
Complete integration with mule esb
 
What is Mean Stack Development ?
What is Mean Stack Development ?What is Mean Stack Development ?
What is Mean Stack Development ?
 
Meanstack Introduction by Kishore Chandra
Meanstack Introduction by Kishore ChandraMeanstack Introduction by Kishore Chandra
Meanstack Introduction by Kishore Chandra
 
Jeetrainers.com coursejspservlets00
Jeetrainers.com coursejspservlets00Jeetrainers.com coursejspservlets00
Jeetrainers.com coursejspservlets00
 
Road Trip To Component
Road Trip To ComponentRoad Trip To Component
Road Trip To Component
 
Java Web services
Java Web servicesJava Web services
Java Web services
 
Java Training in Chennai
Java Training in Chennai Java Training in Chennai
Java Training in Chennai
 
Java DataBase Connectivity API (JDBC API)
Java DataBase Connectivity API (JDBC API)Java DataBase Connectivity API (JDBC API)
Java DataBase Connectivity API (JDBC API)
 
What is Mule ESB
What is Mule ESB What is Mule ESB
What is Mule ESB
 
NetBeans Platform for Rich Client Development
NetBeans Platform for Rich Client DevelopmentNetBeans Platform for Rich Client Development
NetBeans Platform for Rich Client Development
 
Mean stack
Mean stackMean stack
Mean stack
 
Client server 01
Client server 01Client server 01
Client server 01
 
Java Database Connectivity
Java Database ConnectivityJava Database Connectivity
Java Database Connectivity
 
Advanced JAVA
Advanced JAVAAdvanced JAVA
Advanced JAVA
 
jdbc document
jdbc documentjdbc document
jdbc document
 
Basic method for Java EE Web Profile
Basic method for Java EE Web ProfileBasic method for Java EE Web Profile
Basic method for Java EE Web Profile
 
Web programming and services
Web programming and servicesWeb programming and services
Web programming and services
 
Java in Mule
Java in MuleJava in Mule
Java in Mule
 

Similar to Java

Ppt for Online music store
Ppt for Online music storePpt for Online music store
Ppt for Online music storeADEEBANADEEM
 
Advance java prasentation
Advance java prasentationAdvance java prasentation
Advance java prasentationdhananajay95
 
Enterprise java unit-3_chapter-1-jsp
Enterprise  java unit-3_chapter-1-jspEnterprise  java unit-3_chapter-1-jsp
Enterprise java unit-3_chapter-1-jspsandeep54552
 
Java Database Connectivity (JDBC)
Java Database Connectivity (JDBC)Java Database Connectivity (JDBC)
Java Database Connectivity (JDBC)Pooja Talreja
 
Java Database Connectivity (Advanced programming)
Java Database Connectivity (Advanced programming)Java Database Connectivity (Advanced programming)
Java Database Connectivity (Advanced programming)Gera Paulos
 
JAVA J2EE Training in Coimbatore - Fundamentals of Java J2EE
JAVA J2EE Training in Coimbatore - Fundamentals of Java J2EE JAVA J2EE Training in Coimbatore - Fundamentals of Java J2EE
JAVA J2EE Training in Coimbatore - Fundamentals of Java J2EE abile technologies
 
Lecture 19 - Dynamic Web - JAVA - Part 1.ppt
Lecture 19 - Dynamic Web - JAVA - Part 1.pptLecture 19 - Dynamic Web - JAVA - Part 1.ppt
Lecture 19 - Dynamic Web - JAVA - Part 1.pptKalsoomTahir2
 
Cloud compiler - Minor Project by students of CBPGEC
Cloud compiler - Minor Project by students of CBPGEC  Cloud compiler - Minor Project by students of CBPGEC
Cloud compiler - Minor Project by students of CBPGEC vipin kumar
 

Similar to Java (20)

Ppt for Online music store
Ppt for Online music storePpt for Online music store
Ppt for Online music store
 
Jsp(java server pages)
Jsp(java server pages)Jsp(java server pages)
Jsp(java server pages)
 
Jsp
JspJsp
Jsp
 
Advance java prasentation
Advance java prasentationAdvance java prasentation
Advance java prasentation
 
Enterprise java unit-3_chapter-1-jsp
Enterprise  java unit-3_chapter-1-jspEnterprise  java unit-3_chapter-1-jsp
Enterprise java unit-3_chapter-1-jsp
 
Industrial training
Industrial trainingIndustrial training
Industrial training
 
Java Database Connectivity (JDBC)
Java Database Connectivity (JDBC)Java Database Connectivity (JDBC)
Java Database Connectivity (JDBC)
 
JAVA SERVER PAGE
JAVA SERVER PAGEJAVA SERVER PAGE
JAVA SERVER PAGE
 
4. J2EE.pptx
4. J2EE.pptx4. J2EE.pptx
4. J2EE.pptx
 
Java Database Connectivity (Advanced programming)
Java Database Connectivity (Advanced programming)Java Database Connectivity (Advanced programming)
Java Database Connectivity (Advanced programming)
 
Java language pppppt
Java language ppppptJava language pppppt
Java language pppppt
 
JAVA J2EE Training in Coimbatore - Fundamentals of Java J2EE
JAVA J2EE Training in Coimbatore - Fundamentals of Java J2EE JAVA J2EE Training in Coimbatore - Fundamentals of Java J2EE
JAVA J2EE Training in Coimbatore - Fundamentals of Java J2EE
 
Lecture 19 - Dynamic Web - JAVA - Part 1.ppt
Lecture 19 - Dynamic Web - JAVA - Part 1.pptLecture 19 - Dynamic Web - JAVA - Part 1.ppt
Lecture 19 - Dynamic Web - JAVA - Part 1.ppt
 
java full 1.docx
java full 1.docxjava full 1.docx
java full 1.docx
 
java full.docx
java full.docxjava full.docx
java full.docx
 
java completed units.docx
java completed units.docxjava completed units.docx
java completed units.docx
 
java full 1 (Recovered).docx
java full 1 (Recovered).docxjava full 1 (Recovered).docx
java full 1 (Recovered).docx
 
Cloud compiler - Minor Project by students of CBPGEC
Cloud compiler - Minor Project by students of CBPGEC  Cloud compiler - Minor Project by students of CBPGEC
Cloud compiler - Minor Project by students of CBPGEC
 
jdbc
jdbcjdbc
jdbc
 
Ra framework 0.1
Ra framework 0.1Ra framework 0.1
Ra framework 0.1
 

Recently uploaded

Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
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 2024Rafal Los
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
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 WorkerThousandEyes
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 

Recently uploaded (20)

Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
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
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
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 on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 

Java

  • 1. By.., K.Rajalakshmi , Msc-IT Department of CS & IT Nadar saraswathi college of arts and science, Theni CONCEPTS OF ADVANCED JAVA PROGRAMMING JAVA SCRIPTS- SERVLET-JDBC-ETB-JSP
  • 2. • Introduction • Java script • Servlet • JDBC • ETB • JSP
  • 3. INTRODUCTION • Java is an high level programming language developed by SUN MICROSYSTEM. • It was originally designed for developing programs for set-top boxes and handled devices but later became a popular choice for creating web application. • The java syntax is similar to C++ but is strictly an object oriented programming language .
  • 4. JAVA SCRIPT: • Java script is a scripting language that enables to create dynamically updating content, control multimedia, animate images and pretty much everything else…
  • 5. SERVLET: • Servlet technology is used to create a web application (resides at server side and generate a dynamic web page) • Servlet technology is robust and scalable because of java language
  • 6. WHAT IS SERVLET?: • Servlet is an API that provides many interface and classes including documentation. • Servlet is an interface that must be implemented for creating any servlet • Servlet is a class that extends the capabilities of the server and responds to the incoming request. It can respond to any request. • Servlet is a web component that is deployed on the server to create a dynamic web page.
  • 8. JDBC: • JDBC API is a java API that can access any kind of tabular data especially data stored in a relational database. • JDBC works with java on a variety of platform, such as windows, Mac OS, and the various version of UNIX.
  • 9. PURPOSE OF LEARNING JDBC: • JDBC stands for Java Data Base Connectivity • Its is an database independent connectivity between the java programming language and a wide range of database • Some commonly associated JDBC database usages are:
  • 10. • Making a connection to a database • Creating SQL or MYSQL statements • Executing SQL or MYSQL queries in the database • Viewing & modifying the resulting records
  • 11. APPLICATIONS OF JDBC: • It is specification that provides a complete set of interface that allows for portable access to an underlying database • Java can be used to write different types of executable such as: • Java application • Java applet • Java servlet • Java server pages(JSPs) • Enterprise JavaBeans(EJBs) • All these are able to use a JDBC driver to access a database and take advantage of the stored data.
  • 12. ETB : • ETB stands for End of Transmission Block • A communication control character used to indicate the end of a block of data for communication purposes • ETB is used for blocking data where the block structure is not necessarily related to the processing format
  • 13. JSP : • JSP technology is used to create web application just like servlet technology • It can be thought of as an extension to servlet because it provide more functionality than servlet such as expression language, JSTL etc.,
  • 14. ADVANTAGE OF JSP OVER SERVLET: • There are many advantages of JSP over the servlet they are: • Extension to servlet • Easy to maintain • Fast development no need to recompile and redeploy • Less code than servlet
  • 15. LIFECYCLE OF A JSP PAGE: • The JSP pages follow these phases: • Translation of JSP page • Compilation of JSP page • Class loading • Instantiation • Request processing • Destroy
  • 16. CREATING SIMPLE JSP PAGE: • To create the first page, write some HTML codes as given below and save it by .jsp extension • To save this file as index .jsp • Put it in a folder and paste the folder in the web apps directory in apache tomcat to run the jsp page
  • 18. SIMPLE EXAMPLE: <html> <body> <% out. Print(2 * 5):%> </body> </html> o/p: It will print 10 on the browser
  • 19. HOW TO RUN A SIMPLE JSP PAGE: • Start the sever • Put the jsp file in a folder and deploy on the server • Visit the browser by the url • http://localhost:portno/contextroot/jspfile • For EG: http://localhost:8888/myapplication/index.jsp
  • 20.