*
The moose likes JSP and the fly likes Implementing MVC Design Pattern Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Implementing MVC Design Pattern" Watch "Implementing MVC Design Pattern" New topic
Author

Implementing MVC Design Pattern

Abhijeet Neware
Greenhorn

Joined: Mar 28, 2011
Posts: 16
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

Joined: Feb 19, 2008
Posts: 120
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...


Acquire the unexpected.......
Preparing for SCJP 6
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61095
    
  66

Perhaps this article can help.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
wood burning stoves
 
subject: Implementing MVC Design Pattern