Web applications are of the following types: Presentation-oriented: generates interactive web pages containing various types of markup language... Web pages implemented with JavaSer
Trang 1WEB APPLICATIONS
Presenter: Nguyễn Xuân Vinh Information Technology Faculty
Trang 2 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.
Trang 3 Web components can be:
Java Servlets
Web pages implemented with JavaServer Faces technology
Web service endpoints
JSP pages
Figure - Java Web Application Technologies
Trang 4 JavaWebApplication Request Handling
Servlets are Java
programming language
classes that dynamically
process requests and
construct responses.
Servlets are Java
programming language
classes that dynamically
process requests and
construct responses.
JavaServer Faces and
Facelets, are used for
building interactive web
applications
JavaServer Faces and
Facelets, are used for
building interactive web
applications
Servlets are best suited for service-oriented
applications
Servlets are best suited for service-oriented
applications
Java Server Faces and Facelets pages aremore appropriate for generating text-basedmarkup
Java Server Faces and Facelets pages aremore appropriate for generating text-basedmarkup
Trang 5 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
The configuration information can be specified using
Java EE annotations
Web application deployment descriptor (DD): XML file
Trang 7 The process for creating, deploying, and executing a web
application can be summarized as follows:
Develop the web component code 11
Develop the web application deployment descriptor (if necessary) 22
Compile web application components, helper classes referenced by components 33
Optionally, package the application into a deployable unit 44
Deploy the application into a web container 55
Access a URL that references the web application 66
Trang 8 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
Trang 10 Create Web Project and depoly by Eclipse, Netbean
Create Web Project and deploy by Ant
Create Web Project and deploy by Maven
Trang 11HỎI ĐÁP