SlideShare a Scribd company logo
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
Java
Thank you …

More Related Content

What's hot (20)

PDF
Jive the renovation of Aswing
antopensource
 
PPTX
Mule esb overview
Gunjan Deshmukh
 
PPT
Complete integration with mule esb
Son Nguyen
 
PPTX
What is Mean Stack Development ?
Balajihope
 
PDF
Meanstack Introduction by Kishore Chandra
Kishore Chandra
 
PDF
Jeetrainers.com coursejspservlets00
Rajesh Moorjani
 
PPTX
Road Trip To Component
Marketa Adamova
 
PPTX
Java Web services
vpulec
 
PPTX
Java Training in Chennai
raj esaki
 
PPTX
Java DataBase Connectivity API (JDBC API)
Luzan Baral
 
PPTX
What is Mule ESB
Nam Le Dinh
 
PPTX
NetBeans Platform for Rich Client Development
Widura Wijenayake
 
PPTX
Mean stack
RavikantGautam8
 
PPTX
Client server 01
Lockey Irawan
 
PPTX
Java Database Connectivity
ireneconje
 
PPTX
Advanced JAVA
Rajvi Vaghasiya
 
DOC
jdbc document
Yamuna Devi
 
PDF
Basic method for Java EE Web Profile
Kenji HASUNUMA
 
PPTX
Web programming and services
laibamaqsood
 
PPTX
Java in Mule
Anand kalla
 
Jive the renovation of Aswing
antopensource
 
Mule esb overview
Gunjan Deshmukh
 
Complete integration with mule esb
Son Nguyen
 
What is Mean Stack Development ?
Balajihope
 
Meanstack Introduction by Kishore Chandra
Kishore Chandra
 
Jeetrainers.com coursejspservlets00
Rajesh Moorjani
 
Road Trip To Component
Marketa Adamova
 
Java Web services
vpulec
 
Java Training in Chennai
raj esaki
 
Java DataBase Connectivity API (JDBC API)
Luzan Baral
 
What is Mule ESB
Nam Le Dinh
 
NetBeans Platform for Rich Client Development
Widura Wijenayake
 
Mean stack
RavikantGautam8
 
Client server 01
Lockey Irawan
 
Java Database Connectivity
ireneconje
 
Advanced JAVA
Rajvi Vaghasiya
 
jdbc document
Yamuna Devi
 
Basic method for Java EE Web Profile
Kenji HASUNUMA
 
Web programming and services
laibamaqsood
 
Java in Mule
Anand kalla
 

Similar to Java (20)

PPT
Ppt for Online music store
ADEEBANADEEM
 
PPT
Jsp(java server pages)
Khan Mac-arther
 
PPTX
Advance java prasentation
dhananajay95
 
PDF
Enterprise java unit-3_chapter-1-jsp
sandeep54552
 
PPTX
Industrial training
SOUVIK BANERJEE
 
PPTX
Java Database Connectivity (JDBC)
Pooja Talreja
 
PPTX
JAVA SERVER PAGE
Sameenafathima4
 
PPTX
4. J2EE.pptx
HariChandruduM
 
PDF
Java Database Connectivity (Advanced programming)
Gera Paulos
 
PPTX
Java language pppppt
curiosityjunction
 
PDF
JAVA J2EE Training in Coimbatore - Fundamentals of Java J2EE
abile technologies
 
PPT
Lecture 19 - Dynamic Web - JAVA - Part 1.ppt
KalsoomTahir2
 
DOCX
java full 1.docx
SATHYAKALAKSKPRCASBS
 
DOCX
java full.docx
SATHYAKALAKSKPRCASBS
 
DOCX
java completed units.docx
SATHYAKALAKSKPRCASBS
 
DOCX
java full 1 (Recovered).docx
SATHYAKALAKSKPRCASBS
 
PPT
Cloud compiler - Minor Project by students of CBPGEC
vipin kumar
 
PDF
jdbc
shreeuva
 
PPTX
JSP APP DEVLOPMENT.pptx Related to Android App Development
BhawnaSaini45
 
Ppt for Online music store
ADEEBANADEEM
 
Jsp(java server pages)
Khan Mac-arther
 
Advance java prasentation
dhananajay95
 
Enterprise java unit-3_chapter-1-jsp
sandeep54552
 
Industrial training
SOUVIK BANERJEE
 
Java Database Connectivity (JDBC)
Pooja Talreja
 
JAVA SERVER PAGE
Sameenafathima4
 
4. J2EE.pptx
HariChandruduM
 
Java Database Connectivity (Advanced programming)
Gera Paulos
 
Java language pppppt
curiosityjunction
 
JAVA J2EE Training in Coimbatore - Fundamentals of Java J2EE
abile technologies
 
Lecture 19 - Dynamic Web - JAVA - Part 1.ppt
KalsoomTahir2
 
java full 1.docx
SATHYAKALAKSKPRCASBS
 
java full.docx
SATHYAKALAKSKPRCASBS
 
java completed units.docx
SATHYAKALAKSKPRCASBS
 
java full 1 (Recovered).docx
SATHYAKALAKSKPRCASBS
 
Cloud compiler - Minor Project by students of CBPGEC
vipin kumar
 
jdbc
shreeuva
 
JSP APP DEVLOPMENT.pptx Related to Android App Development
BhawnaSaini45
 
Ad

Recently uploaded (20)

PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
PDF
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
What Makes Contify’s News API Stand Out: Key Features at a Glance
Contify
 
IoT-Powered Industrial Transformation – Smart Manufacturing to Connected Heal...
Rejig Digital
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Fl Studio 24.2.2 Build 4597 Crack for Windows Free Download 2025
faizk77g
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
Ad

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