Q39. What is ActionServlet?(donated in Nov.2005)
ActionServlet is the Command part of the MVC implementation and is the core of the Struts
Framework. ActionServlet creates and uses Action, an ActionForm, and ActionForward. The
struts-config.xml file configures the Command. During the creation of the Web project, Action
and ActionForm are extended to solve the specific problem space. The file struts-config.xml
instructs ActionServlet on how to use the extended classes.
Q40. What is Jakarta Struts Framework? (donated in Nov. 2005)
Jakarta Struts is an open source implementation of MVC (Model-View-Controller) pattern for the
development of web based applications. Jakarta Struts is robust architecture and can be used for
the development of application of any size. Struts framework makes it much easier to design
scalable, reliable Web applications with Java
Q41. What is Struts?
Struts is a web page development framework and an open source software that helps developers
build web applications quickly and easily. Struts combines Java Servlets, Java Server Pages,
custom tags, and message resources into a unified framework. It is a cooperative, synergistic
platform, suitable for development teams, independent developers, and everyone between.
Q42. How is the MVC design pattern used in Struts framework?
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.
Q43. What are the core classes of Struts?
Action, ActionForm, ActionServlet, ActionMapping, ActionForward are basic classes of Structs.
Question:
Q44. What is the design role played by Struts?
The role played by Structs is controller in Model/View/Controller(MVC) style. The View is
played by JSP and Model is played by JDBC or generic data source classes. The Struts controller
is a set of programmable components that allow developers to define exactly how the application
interacts with the user.
Q45. How Struts control data flow?
Struts implements the MVC/Layers pattern through the use of ActionForwards and
ActionMappings to keep control-flow decisions out of presentation layer.