Programming Tutorials

Interview Question: How is the MVC design pattern used in Struts framework?

By: Ash in Interview Tutorials on 2008-08-13  

Question:How is the MVC design pattern used in Struts framework?

Answer: In the MVC design pattern, application flow is mediated by a central Controller. The Controller delegates requests to an appropriate handler. The handlers are tied to a Model, and each handler acts as an adapter between the request and the Model. The Model represents, or encapsulates, an application's business logic or state. Control is usually then forwarded back through the Controller to the appropriate View. The forwarding can be determined by consulting a set of mappings, usually loaded from a database or configuration file. This provides a loose coupling between the View and Model, which can make an application significantly easier to create and maintain.

Controller--Servlet controller which supplied by Struts itself; View --- what you can see on the screen, a JSP page and presentation components; Model --- System state and a business logic JavaBeans.

 

 

 

 





Add Comment

* Required information
1000

Comments

No comments yet. Be the first!

Most Viewed Articles (in Interview )

Interview Question: How is the MVC design pattern used in Struts framework?

Explain the Encapsulation principle.

What is Collection API?

Question: What is a Hidden Comment in JSP?

Interview Question: Why does EJB needs two interfaces(Home and Remote Interface)?

What are all the different scope values for the tag?

What are implicit Objects available to the JSP Page?

Question: What is an Expression tag in JSP?

What is the difference between JTS and JTA?

Interview Question: What is Local client view in EJB?

Interview Question: Can I invoke Runtime.gc() in an EJB?

Interview Question: What is the difference between Message Driven Beans and Stateless Session beans?

Interview Question: How many EJB Objects are created for a Bean?

Interview Question: What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

Name the containers which uses Border Layout as their default layout?

Latest Articles (in Interview)