intTypePromotion=1
zunia.vn Tuyển sinh 2024 dành cho Gen-Z zunia.vn zunia.vn
ADSENSE

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

Chia sẻ: Ngocnga Ngocnga | Ngày: | Loại File: PPT | Số trang:11

51
lượt xem
2
download
 
  Download Vui lòng tải xuống để xem tài liệu đầy đủ

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.

Chủ đề:
Lưu

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

  1. TRƯỜNG ĐẠI HỌC NÔNG LÂM TP.HCM GV: NGUYỄN XUÂN VINH MÔN: LẬP TRÌNH MẠNG 2 KHOA CÔNG NGHỆ THÔNG TIN WEB APPLICATIONS 15/01/16 Presenter: Nguyễn Xuân Vinh Information Technology Faculty /XX Nong Lam University 1
  2. TRƯỜNG ĐẠI HỌC NÔNG LÂM TP.HCM KHOA CÔNG NGHỆ THÔNG TIN Overview GV: NGUYỄN XUÂN VINH  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. MÔN: LẬP TRÌNH MẠNG 2 15/01/16 /XX 2
  3. TRƯỜNG ĐẠI HỌC NÔNG LÂM TP.HCM KHOA CÔNG NGHỆ THÔNG TIN Web Applications GV: NGUYỄN XUÂN VINH  Web components can be:  Java Servlets.  Web pages implemented with JavaServer Faces technology.  Web service endpoints. MÔN: LẬP TRÌNH MẠNG 2  JSP pages. 15/01/16 Figure Figure--Java JavaWeb WebApplication Application /XX Technologies Technologies 3
  4. TRƯỜNG ĐẠI HỌC NÔNG LÂM TP.HCM KHOA CÔNG NGHỆ THÔNG TIN Web Applications GV: NGUYỄN XUÂN VINH  JavaWebApplication Request Handling Servlets Servletsare areJava Java Servlets Servletsare arebest bestsuited suited programming programming for forservice-oriented service-oriented language languageclasses classesthat that applications applications dynamically dynamicallyprocess process requests requestsand and MÔN: LẬP TRÌNH MẠNG 2 construct constructresponses. responses. 15/01/16 JavaServer JavaServerFaces Faces Java JavaServer ServerFaces Facesand and and andFacelets, Facelets,are are Facelets Faceletspages pagesaremore aremore appropriate appropriatefor for /XX used usedfor forbuilding building interactive interactiveweb web generating generatingtext- text- 4 applications applications basedmarkup basedmarkup
  5. TRƯỜNG ĐẠI HỌC NÔNG LÂM TP.HCM KHOA CÔNG NGHỆ THÔNG TIN Web Applications GV: NGUYỄN XUÂN VINH  Web components are supported by the services of a runtime  platform called a web container.  Web container provides such services as:  Request dispatching. MÔN: LẬP TRÌNH MẠNG 2  Security.  Concurrency.  Lifecycle management.  Web container gives web components access to such API as:  Naming.  Transactions. 15/01/16  Email. /XX 5
  6. TRƯỜNG ĐẠI HỌC NÔNG LÂM TP.HCM KHOA CÔNG NGHỆ THÔNG TIN Web Applications GV: NGUYỄN XUÂN VINH  The configuration information can be specified using  Java EE annotations  Web application deployment descriptor (DD): XML file. MÔN: LẬP TRÌNH MẠNG 2 15/01/16 /XX 6
  7. TRƯỜNG ĐẠI HỌC NÔNG LÂM TP.HCM KHOA CÔNG NGHỆ THÔNG TIN Web Application Lifecycle GV: NGUYỄN XUÂN VINH  The process for creating, deploying, and executing a web  application can be summarized as follows: 11 Develop Developthe theweb webcomponent componentcode code MÔN: LẬP TRÌNH MẠNG 2 22 Develop Developthe theweb webapplication applicationdeployment deploymentdescriptor descriptor(if (ifnecessary) necessary) 33 Compile Compileweb webapplication applicationcomponents, components,helper helperclasses classesreferenced referencedby by components components 44 Optionally, Optionally,package packagethe theapplication applicationinto intoaadeployable deployableunit unit 55 Deploy Deploythe theapplication applicationinto intoaaweb webcontainer container 66 Access AccessaaURL URLthat thatreferences referencesthe theweb webapplication application 15/01/16 /XX 7
  8. TRƯỜNG ĐẠI HỌC NÔNG LÂM TP.HCM KHOA CÔNG NGHỆ THÔNG TIN Web Module 1: hello example GV: NGUYỄN XUÂN VINH  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: MÔN: LẬP TRÌNH MẠNG 2  Server­side utility classes, such as shopping carts.  Client­side classes, such as applets and utility classes. 15/01/16 /XX 8
  9. TRƯỜNG ĐẠI HỌC NÔNG LÂM TP.HCM KHOA CÔNG NGHỆ THÔNG TIN Web Module 1: hello example GV: NGUYỄN XUÂN VINH MÔN: LẬP TRÌNH MẠNG 2 15/01/16 /XX 9
  10. TRƯỜNG ĐẠI HỌC NÔNG LÂM TP.HCM KHOA CÔNG NGHỆ THÔNG TIN Web Module 1: Demo GV: NGUYỄN XUÂN VINH  Create Web Project and depoly by Eclipse, Netbean  Create Web Project and deploy by Ant  Create Web Project and deploy by Maven MÔN: LẬP TRÌNH MẠNG 2 15/01/16 /XX 10
  11. TRƯỜNG ĐẠI HỌC NÔNG LÂM TP.HCM GV: NGUYỄN XUÂN VINH KHOA CÔNG NGHỆ THÔNG TIN HỎI ĐÁP MÔN: LẬP TRÌNH MẠNG 2 15/01/16 /XX 11
ADSENSE

CÓ THỂ BẠN MUỐN DOWNLOAD

 

Đồng bộ tài khoản
2=>2