| 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
|
|
|
Perhaps this article can help.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: Implementing MVC Design Pattern
|
|
|