This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes JSP and the fly likes Implementing MVC Design Pattern Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply 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: 118
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: 56202
    
  13

Perhaps this article can help.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Implementing MVC Design Pattern
 
Similar Threads
draft review of EJB in Action
difference between mvc and mvc2 ??
DAO Pattern & Head First Series
MVC design pattern
Struts Interview Questions