SlideShare a Scribd company logo
1 of 26
Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 1
Chapter 1
An introduction to web
programming with Java
Contact information of Lecturer
Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 2
Dr. Tran Tien Cong
Email: congtt@ptit.edu.vn
Phone number: 0986531614
Course syllabus
Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 3
- Introduction to Web programming
- HTML/CSS/Javascript
- MVC Model
- Java Servlets
- Java Server Pages (JSP)
- Session and Cookies
- Java Beans/JSP Expression Language
- JSP Standard Tag Library
- JDBC
- Spring Framework
- Spring Data JPA/Hibernate
- Java Web Services/Spring Rest API
Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 4
Objectives
Knowledge
1. Name the software component that runs on the client of a typical
web application.
2. Name the two software components that run on the server of a
typical web application.
3. Distinguish between HTML and HTTP.
4. Distinguish between static web pages and dynamic web pages.
5. Name three approaches for developing Java web applications.
6. Describe the software components that are required for developing
servlet and JSP applications.
7. List and describe the three layers of a typical Java web application.
8. In general terms, describe the use of these directories as defined by
the J2EE specification: webapps, document root, WEB-INF, and
WEB-INFclasses.
Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 5
Objectives (continued)
9. Name two IDEs that can be used for developing Java web
applications.
10.Name two web servers that can be used for developing Java web
applications.
11.Name a popular database server that can be used for developing
Java web applications.
Course materials
Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 6
• J. Murach, M. Urban. Murach’s Java Servlet and JSP. 3rd
Edition”, 2014.
• Spring in Action, 5th Edition
• Bài giảng Lập trình Web, Học viện Công nghệ Bưu chính
Viễn thông.
• Slides
• Google Classroom
How to grade?
Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 7
Attendance 10% Type “có” into the
chat box
Quiz 20% Occasionally
Project 20% By group
Final exam 50% Programming at
the computer room
Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 8
The first page of a shopping cart application
Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 9
The second page of a shopping cart application
Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 10
Components of a web application
Web
browser
Web server
Database server
Client
computer
Server
computer
Internet
connection
Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 11
How a web server processes static web pages
How a web server processes dynamic web pages
Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 12
Three approaches for developing Java web apps
Servlet/JSP
 Is a lower-level API that does less work for the programmer.
 Provides a high degree of control over the HTML/CSS/JavaScript
that’s returned to the browser.
JSF
 Is a higher-level API that does more work for the programmer.
 Makes it more difficult to control the HTML/CSS/JavaScript
that’s returned to the browser.
Spring Framework
 Is a higher-level API that does more work for the programmer.
 Provides a high degree of control over the HTML/CSS/JavaScript
that’s returned to the browser.
Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 13
Terminology
 The Java Standard Edition (Java SE) includes the Java
Development Kit (JDK) and the Java Runtime Environment (JRE).
 The Java Enterprise Edition (Java EE) specification describes
how web servers can interact with all Java web technologies.
 Servlets store the Java code that does the server-side processing.
 JavaServer Pages (JSPs) store the HTML that defines the user
interface.
 JavaServer Faces (JSF) provides a higher-level API that replaces
both servlets and JSPs.
 Java Persistence API (JPA) is an API for working with databases.
Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 14
The components of a servlet/JSP application
Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 15
The architecture for a servlet/JSP application
Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 16
The directory structure for a web application
Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 17
The directories and files for a web application
Directory Description
(root) Contains the HTML and JSP files.
WEB-INF Contains the web.xml file and is not directly
accessible from the web.
WEB-INFclasses Contains the servlets and other Java classes for your
application. Each subdirectory corresponds with the
package for the Java class.
WEB-INFlib Contains any JAR files that contain Java class
libraries that are used by the web application.
META-INF Contains the context.xml file that configures the
web application context.
Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 18
The NetBeans IDE
Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 19
Popular IDEs for Java web development
 NetBeans
 Eclipse
 IntelliJ IDEA
Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 20
Two popular web servers
Tomcat
 Is a servlet/JSP engine that includes a web server.
 Is free, open-source, and runs on all modern operating systems.
 Is a popular web server for Java web applications.
GlassFish
 Is a complete Java EE application server.
 Is free, open-source, and runs on all modern operating systems.
 Provides more features than Tomcat.
 Requires more system resources than Tomcat.
Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 21
Other popular web servers
 WildFly (formerly JBoss)
 Jetty
 Oracle WebLogic
 IBM WebSphere
Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 22
A popular database server
MySQL
 Is a relational database server that implements most of the SQL
standard.
 Is free, open-source, and runs on all modern operating systems.
 Is the most popular database server for Java web applications.
Other popular database servers
 PostgreSQL
 Oracle
Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 23
An ISP that provides servlet/JSP web hosting
Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 24
The FileZilla program
WinSCP
Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 25
WinSCP – Synchronize
Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 26

More Related Content

Similar to Chapter 01 slides.pptx

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
 
Arpita industrial trainingppt
Arpita industrial trainingpptArpita industrial trainingppt
Arpita industrial trainingpptARPITA SRIVASTAVA
 
Java2 platform
Java2 platformJava2 platform
Java2 platformSajan Sahu
 
The Java Server Page in Java Concept.pptx
The Java Server Page in Java Concept.pptxThe Java Server Page in Java Concept.pptx
The Java Server Page in Java Concept.pptxKavitha713564
 
Bt0083, server side programming theory
Bt0083, server side programming theoryBt0083, server side programming theory
Bt0083, server side programming theorysmumbahelp
 
Bt0083, server side programming theory
Bt0083, server side programming theoryBt0083, server side programming theory
Bt0083, server side programming theorysmumbahelp
 
Java training noida hibernate+spring+struts+web services(1)
Java training noida hibernate+spring+struts+web services(1)Java training noida hibernate+spring+struts+web services(1)
Java training noida hibernate+spring+struts+web services(1)miracleindia
 
Struts 2 Overview
Struts 2 OverviewStruts 2 Overview
Struts 2 Overviewskill-guru
 
Introduction to the Servlet / JSP course
Introduction to the Servlet / JSP course Introduction to the Servlet / JSP course
Introduction to the Servlet / JSP course JavaEE Trainers
 
ASP.NET MVC - In the Wild
ASP.NET MVC - In the WildASP.NET MVC - In the Wild
ASP.NET MVC - In the WildBrian Boatright
 
Mi0041 java and web design
Mi0041  java and web designMi0041  java and web design
Mi0041 java and web designsmumbahelp
 
(Ebook pdf) java programming language basics
(Ebook pdf)   java programming language basics(Ebook pdf)   java programming language basics
(Ebook pdf) java programming language basicsRaffaella D'angelo
 
Web Component Development with Servlet and JSP Technologies Unit 01
Web Component Development with Servlet and JSP Technologies Unit 01Web Component Development with Servlet and JSP Technologies Unit 01
Web Component Development with Servlet and JSP Technologies Unit 01Prashanth Shivakumar
 

Similar to Chapter 01 slides.pptx (20)

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
 
Arpita industrial trainingppt
Arpita industrial trainingpptArpita industrial trainingppt
Arpita industrial trainingppt
 
Java2 platform
Java2 platformJava2 platform
Java2 platform
 
The Java Server Page in Java Concept.pptx
The Java Server Page in Java Concept.pptxThe Java Server Page in Java Concept.pptx
The Java Server Page in Java Concept.pptx
 
Bt0083, server side programming theory
Bt0083, server side programming theoryBt0083, server side programming theory
Bt0083, server side programming theory
 
Bt0083, server side programming theory
Bt0083, server side programming theoryBt0083, server side programming theory
Bt0083, server side programming theory
 
Java training noida hibernate+spring+struts+web services(1)
Java training noida hibernate+spring+struts+web services(1)Java training noida hibernate+spring+struts+web services(1)
Java training noida hibernate+spring+struts+web services(1)
 
Struts 2 Overview
Struts 2 OverviewStruts 2 Overview
Struts 2 Overview
 
Introduction to the Servlet / JSP course
Introduction to the Servlet / JSP course Introduction to the Servlet / JSP course
Introduction to the Servlet / JSP course
 
ASP.NET MVC - In the Wild
ASP.NET MVC - In the WildASP.NET MVC - In the Wild
ASP.NET MVC - In the Wild
 
Mvc15 (1)
Mvc15 (1)Mvc15 (1)
Mvc15 (1)
 
Mi0041 java and web design
Mi0041  java and web designMi0041  java and web design
Mi0041 java and web design
 
(Ebook pdf) java programming language basics
(Ebook pdf)   java programming language basics(Ebook pdf)   java programming language basics
(Ebook pdf) java programming language basics
 
JAVA SERVER PAGE
JAVA SERVER PAGEJAVA SERVER PAGE
JAVA SERVER PAGE
 
Web Component Development with Servlet and JSP Technologies Unit 01
Web Component Development with Servlet and JSP Technologies Unit 01Web Component Development with Servlet and JSP Technologies Unit 01
Web Component Development with Servlet and JSP Technologies Unit 01
 
Servelts Jsp By Sai Butchi
Servelts Jsp By Sai ButchiServelts Jsp By Sai Butchi
Servelts Jsp By Sai Butchi
 
JSP overview
JSP overviewJSP overview
JSP overview
 
INTERNSHIP REPORT
INTERNSHIP REPORTINTERNSHIP REPORT
INTERNSHIP REPORT
 
Marwa Gamal.Cv
Marwa Gamal.CvMarwa Gamal.Cv
Marwa Gamal.Cv
 
nagavarthini ppt.pptx
nagavarthini ppt.pptxnagavarthini ppt.pptx
nagavarthini ppt.pptx
 

More from congtran88

Logic menh de nhap mon tri tue nhan tao ptit
Logic menh de nhap mon tri tue nhan tao ptitLogic menh de nhap mon tri tue nhan tao ptit
Logic menh de nhap mon tri tue nhan tao ptitcongtran88
 
InceptionV3 model deep learning image processing
InceptionV3 model deep learning image processingInceptionV3 model deep learning image processing
InceptionV3 model deep learning image processingcongtran88
 
2. Chuyen de 11 Hang 3.pdf
2. Chuyen de 11 Hang 3.pdf2. Chuyen de 11 Hang 3.pdf
2. Chuyen de 11 Hang 3.pdfcongtran88
 
GENERATIVE GRAPH CONVOLUTIONAL NETWORK FOR GROWING GRAPHS.pptx
GENERATIVE GRAPH CONVOLUTIONAL NETWORK FOR GROWING GRAPHS.pptxGENERATIVE GRAPH CONVOLUTIONAL NETWORK FOR GROWING GRAPHS.pptx
GENERATIVE GRAPH CONVOLUTIONAL NETWORK FOR GROWING GRAPHS.pptxcongtran88
 
S2-5.-KardiaChain-1-Ông-Nguyễn-Ngọc-Hưng-Chủ-tịch-Công-ty-Cổ-phần-Công-nghệ-K...
S2-5.-KardiaChain-1-Ông-Nguyễn-Ngọc-Hưng-Chủ-tịch-Công-ty-Cổ-phần-Công-nghệ-K...S2-5.-KardiaChain-1-Ông-Nguyễn-Ngọc-Hưng-Chủ-tịch-Công-ty-Cổ-phần-Công-nghệ-K...
S2-5.-KardiaChain-1-Ông-Nguyễn-Ngọc-Hưng-Chủ-tịch-Công-ty-Cổ-phần-Công-nghệ-K...congtran88
 
Knowledge Based Systems.ppt
Knowledge Based Systems.pptKnowledge Based Systems.ppt
Knowledge Based Systems.pptcongtran88
 
Preprocessing.ppt
Preprocessing.pptPreprocessing.ppt
Preprocessing.pptcongtran88
 
Reading_0413_var_Transformers.pptx
Reading_0413_var_Transformers.pptxReading_0413_var_Transformers.pptx
Reading_0413_var_Transformers.pptxcongtran88
 

More from congtran88 (9)

Logic menh de nhap mon tri tue nhan tao ptit
Logic menh de nhap mon tri tue nhan tao ptitLogic menh de nhap mon tri tue nhan tao ptit
Logic menh de nhap mon tri tue nhan tao ptit
 
InceptionV3 model deep learning image processing
InceptionV3 model deep learning image processingInceptionV3 model deep learning image processing
InceptionV3 model deep learning image processing
 
2. Chuyen de 11 Hang 3.pdf
2. Chuyen de 11 Hang 3.pdf2. Chuyen de 11 Hang 3.pdf
2. Chuyen de 11 Hang 3.pdf
 
GENERATIVE GRAPH CONVOLUTIONAL NETWORK FOR GROWING GRAPHS.pptx
GENERATIVE GRAPH CONVOLUTIONAL NETWORK FOR GROWING GRAPHS.pptxGENERATIVE GRAPH CONVOLUTIONAL NETWORK FOR GROWING GRAPHS.pptx
GENERATIVE GRAPH CONVOLUTIONAL NETWORK FOR GROWING GRAPHS.pptx
 
CSDLPT
CSDLPTCSDLPT
CSDLPT
 
S2-5.-KardiaChain-1-Ông-Nguyễn-Ngọc-Hưng-Chủ-tịch-Công-ty-Cổ-phần-Công-nghệ-K...
S2-5.-KardiaChain-1-Ông-Nguyễn-Ngọc-Hưng-Chủ-tịch-Công-ty-Cổ-phần-Công-nghệ-K...S2-5.-KardiaChain-1-Ông-Nguyễn-Ngọc-Hưng-Chủ-tịch-Công-ty-Cổ-phần-Công-nghệ-K...
S2-5.-KardiaChain-1-Ông-Nguyễn-Ngọc-Hưng-Chủ-tịch-Công-ty-Cổ-phần-Công-nghệ-K...
 
Knowledge Based Systems.ppt
Knowledge Based Systems.pptKnowledge Based Systems.ppt
Knowledge Based Systems.ppt
 
Preprocessing.ppt
Preprocessing.pptPreprocessing.ppt
Preprocessing.ppt
 
Reading_0413_var_Transformers.pptx
Reading_0413_var_Transformers.pptxReading_0413_var_Transformers.pptx
Reading_0413_var_Transformers.pptx
 

Recently uploaded

IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 

Recently uploaded (20)

IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 

Chapter 01 slides.pptx

  • 1. Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 1 Chapter 1 An introduction to web programming with Java
  • 2. Contact information of Lecturer Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 2 Dr. Tran Tien Cong Email: congtt@ptit.edu.vn Phone number: 0986531614
  • 3. Course syllabus Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 3 - Introduction to Web programming - HTML/CSS/Javascript - MVC Model - Java Servlets - Java Server Pages (JSP) - Session and Cookies - Java Beans/JSP Expression Language - JSP Standard Tag Library - JDBC - Spring Framework - Spring Data JPA/Hibernate - Java Web Services/Spring Rest API
  • 4. Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 4 Objectives Knowledge 1. Name the software component that runs on the client of a typical web application. 2. Name the two software components that run on the server of a typical web application. 3. Distinguish between HTML and HTTP. 4. Distinguish between static web pages and dynamic web pages. 5. Name three approaches for developing Java web applications. 6. Describe the software components that are required for developing servlet and JSP applications. 7. List and describe the three layers of a typical Java web application. 8. In general terms, describe the use of these directories as defined by the J2EE specification: webapps, document root, WEB-INF, and WEB-INFclasses.
  • 5. Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 5 Objectives (continued) 9. Name two IDEs that can be used for developing Java web applications. 10.Name two web servers that can be used for developing Java web applications. 11.Name a popular database server that can be used for developing Java web applications.
  • 6. Course materials Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 6 • J. Murach, M. Urban. Murach’s Java Servlet and JSP. 3rd Edition”, 2014. • Spring in Action, 5th Edition • Bài giảng Lập trình Web, Học viện Công nghệ Bưu chính Viễn thông. • Slides • Google Classroom
  • 7. How to grade? Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 7 Attendance 10% Type “có” into the chat box Quiz 20% Occasionally Project 20% By group Final exam 50% Programming at the computer room
  • 8. Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 8 The first page of a shopping cart application
  • 9. Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 9 The second page of a shopping cart application
  • 10. Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 10 Components of a web application Web browser Web server Database server Client computer Server computer Internet connection
  • 11. Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 11 How a web server processes static web pages How a web server processes dynamic web pages
  • 12. Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 12 Three approaches for developing Java web apps Servlet/JSP  Is a lower-level API that does less work for the programmer.  Provides a high degree of control over the HTML/CSS/JavaScript that’s returned to the browser. JSF  Is a higher-level API that does more work for the programmer.  Makes it more difficult to control the HTML/CSS/JavaScript that’s returned to the browser. Spring Framework  Is a higher-level API that does more work for the programmer.  Provides a high degree of control over the HTML/CSS/JavaScript that’s returned to the browser.
  • 13. Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 13 Terminology  The Java Standard Edition (Java SE) includes the Java Development Kit (JDK) and the Java Runtime Environment (JRE).  The Java Enterprise Edition (Java EE) specification describes how web servers can interact with all Java web technologies.  Servlets store the Java code that does the server-side processing.  JavaServer Pages (JSPs) store the HTML that defines the user interface.  JavaServer Faces (JSF) provides a higher-level API that replaces both servlets and JSPs.  Java Persistence API (JPA) is an API for working with databases.
  • 14. Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 14 The components of a servlet/JSP application
  • 15. Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 15 The architecture for a servlet/JSP application
  • 16. Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 16 The directory structure for a web application
  • 17. Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 17 The directories and files for a web application Directory Description (root) Contains the HTML and JSP files. WEB-INF Contains the web.xml file and is not directly accessible from the web. WEB-INFclasses Contains the servlets and other Java classes for your application. Each subdirectory corresponds with the package for the Java class. WEB-INFlib Contains any JAR files that contain Java class libraries that are used by the web application. META-INF Contains the context.xml file that configures the web application context.
  • 18. Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 18 The NetBeans IDE
  • 19. Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 19 Popular IDEs for Java web development  NetBeans  Eclipse  IntelliJ IDEA
  • 20. Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 20 Two popular web servers Tomcat  Is a servlet/JSP engine that includes a web server.  Is free, open-source, and runs on all modern operating systems.  Is a popular web server for Java web applications. GlassFish  Is a complete Java EE application server.  Is free, open-source, and runs on all modern operating systems.  Provides more features than Tomcat.  Requires more system resources than Tomcat.
  • 21. Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 21 Other popular web servers  WildFly (formerly JBoss)  Jetty  Oracle WebLogic  IBM WebSphere
  • 22. Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 22 A popular database server MySQL  Is a relational database server that implements most of the SQL standard.  Is free, open-source, and runs on all modern operating systems.  Is the most popular database server for Java web applications. Other popular database servers  PostgreSQL  Oracle
  • 23. Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 23 An ISP that provides servlet/JSP web hosting
  • 24. Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 24 The FileZilla program
  • 25. WinSCP Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 25
  • 26. WinSCP – Synchronize Murach's Java Servlets/JSP (3rd Ed.), C1 © 2014, Mike Murach & Associates, Inc. Slide 26

Editor's Notes

  1. Java servelet: ứng dụng chạy phía server, JSP: trang web nhúng code java Ít dung để phát triển thực tế, tuy nhiên là kiến thức nền tảng trước khi có thể hiểu được những công nghệ mới hơn