Sunday, 23 November 2014

Struts2 : MVC Architecutre


MVC Architectire contains 3 modules, model, view and controller.

Model: Model contains Application data and business logic.
View: View takes care of displaying the information to client.
Controller: Controller is the key module in MVC, it receives the input from client, and commands the model/view accordingly.

A typical MVC architecture looks like below for struts2.

Action classes in struts acts as model, jsp pages acts as views and struts.xml acts as controller.

Prevoius                                                 Next                                                 Home

No comments:

Post a Comment