Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training

In Struts What is Model?

This tutorial explains What is Model in Struts?

Ads

Tutorials   
Struts 2 Tutorial and Examples Struts 2.5.10.1 General Availability - released Login form in Struts2 version 2.3.16 Struts 2 Login Application Struts 2 version 2.3.16.3 released Struts 2 version 2.3.15.3 released Struts 2 Hello World Annotation Example Struts Roseindia Struts 2 Tutorial: Easy steps to learn Struts 2 Difference between Struts and Spring Apache Struts 2.3.15.2 launched to fix vulnerable Feature Struts2 Application in Eclipse: Running the application in Eclipse IDE Struts 2 Hello World Application using Eclipse Interceptors in Struts 2 Struts 2 Action Tag Struts 2 in Agile Development Environment Struts 2 UI Tags Generic Tags Creating own Interceptor What are Interceptors in Struts 2 and how do they work? Results Value Stack / OGNL Action in Struts 2 Framework Struts 2 Interceptors Struts 2.3.15.1 Maven - How to use Maven dependency of Struts 2.3.15.1? Download Struts 2.3.15.1 How Struts 2 Framework works? Architecture of Struts 2 Framework Features and Enhancements in Struts 2.3.15.1 Struts 2 Tutorials - Struts version 2.3.15.1 Struts 1 Tutorial and example programs Struts Tutorial What is Struts Struts Flow Diagram Step By Step Struts Tutorial Struts 2 Login Form Example Struts Video Tutorials Struts 2 Hello World Example Introduction to Struts 2 Framework Downloading and Installing Struts 2.3.8 In Struts What is Model? What is Struts? Download Struts What is Struts Framework? Struts Framework Latest Version of Struts Framework Downloading Struts Official example Struts 2.3.8 released with new features Struts 2.3.8 Tutorials and Examples Hibernate4 Struts Integration
Ads

In Struts What is Model?

This tutorial explains you What is Model in Struts. Struts is MVC based application and it is separated into three integral parts, Model, View and Controller.

In MVC design pattern there are three kinds of components:

  • Model
  • View and
  • Controller

Struts is also based on the MVC design patter and Model plays important role in the framework. In any MVC framework model is the component responsible for the handling the data of the system. In MVC there is no requirement of containing the model itself, instead it contains the links to the one or more Models.

In Struts framework you can create the variables in Action to hold the data of the application. In the Action class itself you can call the methods of application service to retrieve and save the data into database.

Thus in Struts Action class plays an important role of managing the data (Model) of the application. So, its advisable to create the intelligent code in your action class and don't write the JDBC code in Action class. You should always use the Service classes to access the database.

Struts Framework Tutorials:

Advertisements

Share on Google+Share on Google+

In Struts What is Model?

Posted on: January 14, 2013 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Advertisements

Ads
 

Discuss: In Struts What is Model?  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0

Ads

 

Ads