File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Implementing MVC Design Pattern" Watch "Implementing MVC Design Pattern" New topic

Implementing MVC Design Pattern

Abhijeet Neware

Joined: Mar 28, 2011
Posts: 16

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

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 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

Joined: Jan 10, 2002
Posts: 63870

Perhaps this article can help.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Implementing MVC Design Pattern
It's not a secret anymore!