Bài giảng Lập trình mạng nâng cao: Web applications - Nguyễn Xuân Vinh

11 12 0
Bài giảng Lập trình mạng nâng cao: Web applications - Nguyễn Xuân Vinh

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Web application is a dynamic extension of a web or application server. Web applications are of the following types: Presentation-oriented - generates interactive web pages containing various types of markup language, service-oriented - implements the endpoint of a web service.

KHOA CÔNG NGHỆ THÔNG TIN /XX 08/05/21 MÔN: LẬP TRÌNH MẠNG GV: NGUYỄN XUÂN VINH TRƯỜNG ĐẠI HỌC NÔNG LÂM TP.HCM WEB APPLICATIONS Presenter: Nguyễn Xuân Vinh Information Technology Faculty Nong Lam University /XX 08/05/21 MÔN: LẬP TRÌNH MẠNG GV: NGUYỄN XUÂN VINH TRƯỜNG ĐẠI HỌC NÔNG LÂM TP.HCM KHOA CÔNG NGHỆ THÔNG TIN Overview  Web application is a dynamic extension of a web or application server Web applications are of the following types:  Presentation-oriented: generates interactive web pages containing various types of markup language  Service-oriented: implements the endpoint of a web service /XX KHOA CÔNG NGHỆ THÔNG TIN Web Applications  Web components can be:  Java Servlets  Web pages implemented with JavaServer Faces technology  Web service endpoints  JSP pages 08/05/21 MƠN: LẬP TRÌNH MẠNG GV: NGUYỄN XUÂN VINH TRƯỜNG ĐẠI HỌC NÔNG LÂM TP.HCM Figure - Java Web Application Technologies /XX 08/05/21 MƠN: LẬP TRÌNH MẠNG GV: NGUYỄN XUÂN VINH TRƯỜNG ĐẠI HỌC NÔNG LÂM TP.HCM KHOA CÔNG NGHỆ THÔNG TIN Web Applications  JavaWebApplication Request Handling Servlets are Java programming language classes that dynamically process requests and construct responses Servlets are best suited for service-oriented applications JavaServer Faces and Facelets, are used for building interactive web applications Java Server Faces and Facelets pages aremore appropriate for generating text-basedmarkup /XX 08/05/21 MÔN: LẬP TRÌNH MẠNG GV: NGUYỄN XUÂN VINH TRƯỜNG ĐẠI HỌC NÔNG LÂM TP.HCM KHOA CÔNG NGHỆ THÔNG TIN Web Applications  Web components are supported by the services of a runtime platform called a web container  Web container provides such services as:  Request dispatching  Security  Concurrency  Lifecycle management  Web container gives web components access to such API as:  Naming  Transactions  Email 6 /XX 08/05/21 MƠN: LẬP TRÌNH MẠNG GV: NGUYỄN XUÂN VINH TRƯỜNG ĐẠI HỌC NÔNG LÂM TP.HCM KHOA CÔNG NGHỆ THÔNG TIN Web Applications  The configuration information can be specified using  Java EE annotations  Web application deployment descriptor (DD): XML file 7 /XX 08/05/21 MÔN: LẬP TRÌNH MẠNG GV: NGUYỄN XUÂN VINH TRƯỜNG ĐẠI HỌC NÔNG LÂM TP.HCM KHOA CÔNG NGHỆ THÔNG TIN Web Application Lifecycle  The process for creating, deploying, and executing a web application can be summarized as follows: Develop the web component code Develop the web application deployment descriptor (if necessary) Compile web application components, helper classes referenced by components Optionally, package the application into a deployable unit Deploy the application into a web container Access a URL that references the web application /XX 08/05/21 MƠN: LẬP TRÌNH MẠNG GV: NGUYỄN XN VINH TRƯỜNG ĐẠI HỌC NÔNG LÂM TP.HCM KHOA CÔNG NGHỆ THÔNG TIN Web Module 1: hello example  Web resources: web components and static web content files  A web module is the smallest deployable and usable unit of web resources  In addition to web components and web resources, a web module can contain other files:  Server-side utility classes, such as shopping carts  Client-side classes, such as applets and utility classes 9 /XX 08/05/21 MƠN: LẬP TRÌNH MẠNG GV: NGUYỄN XUÂN VINH TRƯỜNG ĐẠI HỌC NÔNG LÂM TP.HCM Web Module 1: hello example KHOA CÔNG NGHỆ THÔNG TIN 10 /XX 08/05/21 MƠN: LẬP TRÌNH MẠNG GV: NGUYỄN XUÂN VINH TRƯỜNG ĐẠI HỌC NÔNG LÂM TP.HCM KHOA CÔNG NGHỆ THÔNG TIN Web Module 1: Demo  Create Web Project and depoly by Eclipse, Netbean  Create Web Project and deploy by Ant  Create Web Project and deploy by Maven 11 /XX 08/05/21 MƠN: LẬP TRÌNH MẠNG GV: NGUYỄN XUÂN VINH TRƯỜNG ĐẠI HỌC NÔNG LÂM TP.HCM HỎI ĐÁP KHOA CÔNG NGHỆ THÔNG TIN ... 08/05/21 MƠN: LẬP TRÌNH MẠNG GV: NGUYỄN XUÂN VINH TRƯỜNG ĐẠI HỌC NÔNG LÂM TP.HCM KHOA CÔNG NGHỆ THÔNG TIN Overview  Web application is a dynamic extension of a web or application server Web applications. .. TP.HCM Figure - Java Web Application Technologies /XX 08/05/21 MƠN: LẬP TRÌNH MẠNG GV: NGUYỄN XN VINH TRƯỜNG ĐẠI HỌC NÔNG LÂM TP.HCM KHOA CÔNG NGHỆ THÔNG TIN Web Applications  JavaWebApplication... MƠN: LẬP TRÌNH MẠNG GV: NGUYỄN XUÂN VINH TRƯỜNG ĐẠI HỌC NÔNG LÂM TP.HCM KHOA CÔNG NGHỆ THÔNG TIN Web Applications  Web components are supported by the services of a runtime platform called a web

Ngày đăng: 08/05/2021, 15:32

Từ khóa liên quan

Mục lục

  • WEB APPLICATIONS

  • Overview

  • Web Applications

  • Slide 4

  • Slide 5

  • Slide 6

  • Web Application Lifecycle

  • Web Module 1: hello example

  • Slide 9

  • Web Module 1: Demo

  • HỎI ĐÁP

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan