Please enable JavaScript.
Coggle requires JavaScript to display documents.
CHAPTER 1 INTRODUCTION TO JAVA WEB TECHNOLOGIES (1.3 Servlet API (Servlet…
CHAPTER 1 INTRODUCTION TO JAVA WEB TECHNOLOGIES
1.1 Understand Web Application
3 component in web application :
:star: server
:star: Internet
:star: client
Definition :
a set of web pages are generate to response user request
Web pages
Dynamic
response on what are user request
Web application can be change
Static
they don't response to user input
request to browser
using HTML languange and cannot be change
1.3 Servlet AP
I
Definition:
Java servlets are programs that run on a web or application server
Servlet technology is used to create web application(resides at server side and generates dynamic web page).
Servlet Architecture
Servlet lifecycle
:check:init()
:check:service()
:check:destroy()
G
eneric Servlets VS HTTP Servlets
Generic Servlet:contain generic interface and classes that are implemented and extended by all servlets
HTTP Servlet:contains classes that are extended when creating HTTP specific servlet.
1.2 Understand Java EE platform
Java ME (Micro Edition)
for a small devices such as mobile phone
Java SE ( Standard Edition)
define everything from basic types and objects of java programming languange to high level class Example : GUI (Graphical User Interface)
J
ava EE (Enterprise Edition) :
help developers create large scale, multi-tiered, scalable, realiable, and secure network application
platform
Presentation logic :
known as Client layer which will communicate with business layer
3 component :
:check:Servelet
:check: JSP
:check: Static Content
Data Access logic :
Data store in this layer and communicates with database layer to retrieve the data
Example method
:
:pen: insert
:pen: update
:pen: delete
Business logic :
will manages communication between end user interface and database
3 component :
:pencil2: session beans
:pencil2: entity beans
:pencil2: message driven beans