×
☰ See All Chapters

Model One Architecture

model-one-architecture-0
 
  • In this architecture a single web component i.e. a servlet or JSP contains all the code i.e. business logic, persistence logic and presentation logic. 

  • Having single JSP/Servlet will be good for only very small applications. If the application is bigger, having all the presentation logic, business logic and persistence logic code in single servlet leads to the following problems. 

    1. Code duplication problem. 

    2. Maintenance problem for the frequently changing presentation logic. 

    3. Overall maintenance problem. 

    4. Code readability problem etc… 

  • There will be no separation of between the code layers. 

  • Project enhancement requires complete code rework. 

 


All Chapters
Author