Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Chapter 2 What is a pattern? Explain how model 1 pattern works. Which component

ID: 3888077 • Letter: C

Question

Chapter 2

What is a pattern?

Explain how model 1 pattern works.

Which component of model 1 pattern is responsible to handle all of the processing and presentation for the web application? (Note that this is the reason why model 1 is not recommended to be used!)

Explain what is MVC pattern and how it works (Remember that when we use MVC pattern, we try to keep M, V, C as independent as possible ).

What is the advantage of using MVC pattern?

What is a servlet?

A servlet must extend the class…………..

Two methods of the Httpservlet class that a servlet must override are ………… and ………...

What is the job of doGet() method in a servlet?

What is the job of doPost() method in a servlet?

What is deployment descriptor (DD) ?

What are the parameter doPost() and doGet() method?

What is the job of request object?

What is the job of response object?

What is a javaBean? What are 3 characteristics of a javaBean?

What is the benefit that you get from coding your business classes so that they qualify as javaBeans?

A ………………. Consists of special java tags such as EL tags that are embedded within HTML code

Explanation / Answer

What is a pattern?
well-proved solution for solving the specific problem

Explain how model 1 pattern works.
client sends request for the View page
View accesses Java Bean and invokes business logic
Java Bean connects to the database and get/save data
Response is sent to the client which is generated by Veiw

Which component of model 1 pattern is responsible to handle all of the processing and presentation for the web application? (Note that this is the reason why model 1 is not recommended
to be used!)
JSP pages and java beans

Explain what is MVC pattern and how it works (Remember that when we use MVC pattern, we try to keep M, V, C as independent as possible ).
MVC- Model, View, Controller

Model- contains bussiness logic
Controller- interface between view and model
Veiw- display data

What is the advantage of using MVC pattern?
Easy to maintain, Test, add new features

What is a servlet?
can be used to create web apps, it is a web component

A servlet must extend the class…………..
Httpservlet

Two methods of the Httpservlet class that a servlet must override are ………… and ………...
doGet() and doPost()
What is the job of doGet() method in a servlet?
doGet() -- responsible for handle get request to the client

What is the job of doPost() method in a servlet?
doPost() -- responsible for handle post request to the client

What is deployment descriptor (DD) ?
this is configuration file , which contains configs of the application/servlets

What are the parameter doPost() and doGet() method?
HttpservletRequest, HttpservletResponse

What is the job of request object?
to get/maintain the request

What is the job of response object?
to place/maintain the request

A JSTL Consists of special java tags such as EL tags that are embedded within HTML code

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote