Question { TCS, 11177 }
What is Three tier architecture. Can anyone explain with a
Ordinary web application Project? (JSP,Servlets,JAVA,DAO) ?
Answer
3 Tier architecture is based on MVC pattern .
M - Model (Java Beans)
V - View (Jsp )
C - Controller (Servlets)
Model :Java Beans) which verify the all values of variables
of business domain state knowledge
View :JSP) is Client side Presentation Logic in business
domain
Controller : is responsible for controlling the flow and
state of user input
Process : First the data will come form jsp page and after
submitting the the value form client (jsp Ist tier)side
than data gone to the server (2nd Tier) and validate on
server and finally the data will gone to database (3 tier
SQL, MS ACCESS).