File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes What is model Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "What is model" Watch "What is model" New topic
Author

What is model

carox kaur
Ranch Hand

Joined: Mar 19, 2009
Posts: 52
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

Joined: Jan 28, 2008
Posts: 5575

Model is a simple java class where your business logic goes. google for "MVC architecture"
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

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


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
James Ward
Ranch Hand

Joined: Apr 27, 2003
Posts: 263
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.
 
Don't get me started about those stupid light bulbs.
 
subject: What is model
 
Similar Threads
Business Logic
action classes part of model or controller
JAR the web-application or use WSDL/SOA ?!?!
struts-config.xml help
Model View Controller