palAlaa
palAlaa

Reputation: 9848

MVC2 in jsp/servlet application

Here's the scenario, I am working on a web-based application develped used JSP/Servlet technique, and we adopt MVC2 as an architectural design pattern, we put all the methods that make manipulation on database into one class, for example, addNewUser() , updateUserInfo (), all methods that make connection to db and manipulate data are in one class.

what is the role of this class, controller or model?

Upvotes: 0

Views: 620

Answers (1)

BalusC
BalusC

Reputation: 1108577

That's the (business) model.

The controller should be the servlet and the view should be the JSP.

Upvotes: 1

Related Questions