Xem mẫu
Web Programming with Java
Servlets
Huynh Huu Viet
University of Information Technology Department of Information Systems Email: viethh@uit.edu.vn
1
Outline
Introduction
Overview of Servlet technology
Servlet basics
The Servlet Lifecycle
Retrieving and Sending HTML
Servlet Sessions
2008 © Department of Information Systems - University of Information Technology 2
Introduction
Java networking capabilities:
③Socket-based and packet-based communications
• Package java.net
③Remote Method Invocation (RMI) • Package java.rmi
③Servlets and JavaServer Pages (JSP) • Request-response model
• Packages javax.servlet – javax.servlet.http
– javax.servlet.jsp ③the Web tier of J2EE
2008 © Department of Information Systems - University of Information Technology 3
Introduction (cont.)
Servlets ③Thin clients
③Request/response mechanism ③Session-tracking capabilities ③redirection/forwarding control
Servlets: small Java programs that run on a web server
③Just as applets run on browser Provide web-based applications Extends functionality of web server
2008 © Department of Information Systems - University of Information Technology 4
Outline
Introduction
Overview of Servlet technology
Servlet basics
The Servlet Lifecycle
Retrieving and Sending HTML
Servlet Sessions
2008 © Department of Information Systems - University of Information Technology 5
...
- tailieumienphi.vn
nguon tai.lieu . vn