File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Business  class under model layer or not Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Business  class under model layer or not" Watch "Business  class under model layer or not" New topic

Business class under model layer or not

Rajendra Prakash
Ranch Hand

Joined: Sep 10, 2009
Posts: 293
Business layer(Business classes) comes under Model in MVC2 or Not.
View : Its a presentation layer ( HTML , JSP)
Controller : Action servlet which recieves all the request , process the req and send res back
model : It is responsible for storing and retrieving data from database.
I need clear usage of model in mvc. I googled, but could nt get exact definition
vijin das
Ranch Hand

Joined: Jun 07, 2010
Posts: 129

In model2 MVC the business logic come in the Model, the user interface in the View and the behavior in the Controller as far as i understood ...
There is nothing called MVC1 and MVC2. i think it is model 1 and model 2 of MVC

not MVC1 and MVC2

I agree. Here's the link:
subject: Business class under model layer or not
jQuery in Action, 3rd edition