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

By: Ash Emailed: 1728 times Printed: 2331 times    

Latest comments
By: rohit kumar - how this program is work
By: Kirti - Hi..thx for the hadoop in
By: Spijker - I have altered the code a
By: ali mohammed - why we use the java in ne
By: ali mohammed - why we use the java in ne
By: mizhelle - when I exported the data
By: raul - no output as well, i'm ge
By: Rajesh - thanx very much...
By: Suindu De - Suppose we are executing

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.

 

 

 

 

Interview Home | All Interview Tutorials | Latest Interview Tutorials

Sponsored Links

If this tutorial doesn't answer your question, or you have a specific question, just ask an expert here. Post your question to get a direct answer.



Bookmark and Share

Comments(0)


Be the first one to add a comment

Your name (required):


Your email(required, will not be shown to the public):


Your sites URL (optional):


Your comments:



More Tutorials by Ash
Interview Question: What is the difference between Message Driven Beans and Stateless Session beans?
Interview Question: Is it possible to share an HttpSession between a JSP and EJB? What happens when I change a value in the HttpSession from inside an EJB?
Interview Question: What is the difference between find and select methods in EJB?
Interview Question: What is the difference between JavaBean and EJB?
Interview Question: What is abstract schema?
Interview Question: What is local interface. How values will be passed?
Interview Question: What is Message Driven Bean?
Interview Question: What are the call back methods in Entity bean?
Interview Question: What is deployment descriptor?
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?
Interview Question: What is lazy loading?
Interview Question: What is the difference between EAR, JAR and WAR file?
Interview Question: Can i map more than one table in a CMP?
Interview Question: Is Decorator an EJB design pattern?

More Tutorials in Interview
What is J2EE?
What do you understand by a J2EE module?
Tell me something about J2EE component?
What are the contents of web module?
Differentiate between .ear, .jar and .war files.
What is the difference between Session Bean and Entity Bean?
Why J2EE is suitable for the development distributed multi-tiered enterprise applications?
What do you understand by a container?
What are the services provided by a container?
What are types of J2EE clients?
What is Deployment Descriptor?
What do you understand by JTA and JTS?
What is JAXP?
What is J2EE Connector architecture?
What is difference between Java Bean and Enterprise Java Bean?

More Latest News
Most Viewed Articles (in Interview )
Question: What is a Hidden Comment in JSP?
What do you understand by Synchronization?
What is Deployment Descriptor?
What is Collection API?
Interview Question: What is lazy loading?
What are types of J2EE clients?
What are Access Specifiers available in Java?
What is expression in JSP?
Interview Question: What is Action Class?
Interview Question: What is EJB client JAR file?
Interview Question: What is abstract schema?
Question: How is the MVC design pattern used in Struts framework?
What do you understand by a J2EE module?
Differentiate between .ear, .jar and .war files.
Why J2EE is suitable for the development distributed multi-tiered enterprise applications?
Most Emailed Articles (in Interview)
Interview Question: Where can I get help with Struts?
What is bean managed transaction?
Tell me something about J2EE component?
Interview Question: Why do we need Struts?
Interview Question: What is the difference between ejbCreate() and ejbPostCreate?
Interview Question: Can i map more than one table in a CMP?
Interview Question: Is it possible to share an HttpSession between a JSP and EJB? What happens when I change a value in the HttpSession from inside an EJB?
Question: What is an output comment in JSP?
Interview Question: What is Struts?
Interview Question: Who makes the Struts?
Interview Question: What is Action Class?
Interview Question: Write code of any Action Class?
Interview Question: How does Struts work?
Interview Question: Is Struts compatible with other Java technologies?
Interview Question: Who wrote Struts?