• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Implementing MVC Design Pattern

 
Abhijeet Neware
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi;

We are developing a project it just having JSP and Servlet, but we have to modify that project by implementing MVC design pattern
please suggest me how to do that. That project contains JSP for view and in backend all servlets are working.
 
Rakesh Chaudhary
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

It seems you have the View and Controller in place all you need is a Model ...

Dont write all the business logic in Servlets thats your controller....it should be only use for delegation from View to Controller....All the business logic should come from a pojo ..class thats your Model...try calling these classes from you are Servlet and Map the same in your JSP's as well...

All the Best...

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64618
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps this article can help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic