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

I have question and 2 answer for this question below that, give comment about th

ID: 3890883 • Letter: I

Question

I have question and 2 answer for this question below that, give comment about this two answer and try to improve these two answer and Feel free to agree or disagree with it (in 2 or 3 short paragaraph)
and for each answer write seprated IMPROVMENT (NOT TOGHETHER)
Be detailed in your postings. Please ensure that your postings are civil and constructive.

Question:

Discuss the advantages of Tier 2 Model over Tier 1 Model.

Answer 1:

The Model 1 pattern uses JSPs to handle all of the processing and presentation for the application. This model is ok for web applications with limited processing requirements, but is not usually recommended.


The Model 2 pattern separates the code into a model, a view, and a controller and is known as the Model-View-Controller (MVC) pattern. This model works well for web applications that have significant processing requirements. This makes the web application easier to code and maintain. The MVC pattern is also easier to test and extend which makes this pattern good for large applications.

Answer 2:

Tier 1 Model:

I haven't come across this pattern outside of school In fact, its use is considered a bad practice. The tier 1 pattern uses JSPs for handling all application presentation and processing. This is bad from a design perspective because the JSPs are doing too much work.

Tier 2 Model:

The tier 2 model is definitely the better choice between the two and is widely known as the MVC pattern. It separates the code into a model, view, and controller. By separating the code into three layers it decreases coupling and makes the application easier to maintain. One issue is that it is difficult for new developers to keep these three layers separate.

Explanation / Answer

Answer1 is correct but Answer 2 is wrong and the further improvement is illustrated below :

Answer 1:

The Model 1 pattern uses JSPs to handle all of the processing and presentation for the application. This model is ok for web applications with limited processing requirements, but is not usually recommended.Servlet and JSP are two main technology to build web applications.But in case of servlet if any modification is done we have to recompile it again.But JSP overcome that problems of servlet.

The Model 2 pattern separates the code into a model, a view, and a controller and is known as the Model-View-Controller (MVC) pattern. This model works well for web applications that have significant processing requirements. This makes the web application easier to code and maintain. The MVC pattern is also easier to test and extend which makes this pattern good for large applications.In the MVC pattern ,the model represent the state ,view module is responsible to display data, controller act as interface between view and model.It is easy to extend and test.

Answer 2:

Tier 1 Model:

I haven't come across this pattern outside of school In fact, its use is considered a bad practice. The tier 1 pattern uses JSPs for handling all application presentation and processing. This is bad from a design perspective because the JSPs are doing too much work. The line which is highlighted is wrong because jsp overcome with the problems of servlets .It provides better separation of concern.If in case JSP page is modified we dont have to redeploy,it provide to develop web application using custom tags,jstl,java bean.

Tier 2 Model:

The tier 2 model is definitely the better choice between the two and is widely known as the MVC pattern. It separates the code into a model, view, and controller. By separating the code into three layers it decreases coupling and makes the application easier to maintain. One issue is that it is difficult for new developers to keep these three layers separate.

Thank You .Kindly rate my answer.!!