This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills: The software developer's life manual and have John Sonmez on-line!
See this thread for details.
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is model

 
carox kaur
Ranch Hand
Posts: 52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am a newbie with struts. I have not understood the concept of Model. What does it represent? Does it represent some data or business logic?? Is the Action Form a model? I know Action represent the business logic of the request.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Model is a simple java class where your business logic goes. google for "MVC architecture"
 
Sagar Rohankar
Ranch Hand
Posts: 2904
1
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as Struts 1.x is considered, its built upon MVC 2 and the originator can explain you better what it means.
see:
http://struts.apache.org/1.x/userGuide/introduction.html#mvc
 
James Ward
Ranch Hand
Posts: 263
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may be a Model.. we do not know.

But in programming terms, model is where business logic resides... the term Model is part of MVC - Model View Controller.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic