Professional Documents
Culture Documents
2. Presentation Tier-
Define what the user interface displays and how we
request our handle.
3. Business tier-
This is where the brain of the application resides. It
contains stuff such as business rules, business data
manipulation and so on.
4. Infrastructure Services-
Provides additional functionality which are required by
the application components such as messaging,
transactional support and so on.
6. Data Tier-
Data tier could be a DBMS such as MySQL, Oracle and
so on. This layer is indented to deal with the storage and
retrieval of data.
1. Web Client
It consists of-
a. Dynamic web page containing various types of
mark up language type html Which are generated
by web component running in the web tier .
b. Web Browser which render the pages received
from the server .
2.Application Client
It runs on a client machine and provides away for users
to handle the task which requires a richer user interface
which cannot be provided by a markup language.
Web Tier
It consists of some component which handles the
interaction between client and the business tier.
It performs following task
Collect input from client and collect appropriate
response.
The following technology use in web tier-
a. Servlets
b. JSP(Java Server Pages)
c. JSPL(Java Server Pages Standard Tag Library)
d. JSF(Java Server Faces)
e. Facelets
Business Tier
It consists of component which provide business logic
for an application. The business logic here is handled by
enterprise beans.
4. Enterprise Information System(EIS) Tier-
It consist of-
a. The database server for data storage
b. Enterprise Resource Planning System
c. Transaction processing
d. Other legacy systems
These resources typically are located on a separate
machine than the Java EE server and are accessed by
the components on business tier.
Calling technologies are used in EIS tire-
a. JDBC( Java Database Connectivity)
b. Java persistence API
c. Java EE
d. JTA ( Java Transaction API)
e. Java Connector Architecture
2. forward()-
forward() allows forwarding the request to another JSP
or HTML or servlet page on the server.
Sending a cookie-
Cookie is sent as headers of the response object to the
client.A cookie is added using response.addCookie()
Method of HttpServletResponse.
response.addCookie(c);
Retrieving a cookie-
To retrieve a specific cookie all the available cookies
need to be retried using getCookies() method Of
HttpServlet.getCookie() Which returns an array of
objects.
Cookie [] cookie=request.getCookies();
The cookie name and value is extracted using
getName() and getValue() of The cookie object and
store in a variable.