Rational Rose Tools Interview Questions
..
..
aa
What Are Struts?
Struts framework is a prerequisite for a professional web application. It is the framework that every web application developer should have in his or her toolbox. The Struts framework provides the scaffolding for the workings of a web application. Published standards and its proven design pattern will enable your application to have an expansible development pattern.
The core of the framework is a flexible control layer, adhering to standard technologies such as Jave Servlets, JavaBeans, ResourceBundles, and XML. Its technology also meets the standards of various Jakarta Commons packages, making it a universal framework that could be easily utilized in any setting. The framework supports application architectures based on the Model 2 approach. This provides a variety and offers web application developers a choice aside from the more common Model-View-Controller (MVC) design paradigm.
Struts provide the Controller component. However, the Model and the View is based on integration and interaction with other technologies. The interaction of standard data access technologies, like JDBC and EJBC, with Struts provides the Model for the framework. Other third party packages like Hibernate, iBATIS or Object Relational Bridge also serve this purpose. The View component is produced in much the same way as the Model. Common presentation systems like JavaServer Pages, not excluding JSTL and JSF, Velocity Templates and XSLT are compatible with Struts.
Explain Jakarta Struts Framework?
The development of web based application of any size and scale is possible with Jakarta Struts framework. This open source implementation of MVC (Model-View-Controller) allows for robust architecture. Thus it facilitates the design of scaleable, reliable web applications with Java by making the design process much simpler.
Define Action Servlet.
Action Servlet is the class org.apache.struts.Action Servlet. This class is the controller in the Jakarta Struts Framework. As the medium of delivery, the controller handles all requests to the server.
How To Make Available Message Resources Definitions to the Struts Framework?
Message Resources Definitions files are added to the struts-config.xml file through the <message-resources/> tag. This is because the Message Resources Definitions files are simple .properties files that contain messages usable in the struts project.
What Is Action Class?
All database/business processing happens in the Action Class. All database related stuffs are encouraged to be performed in the Action Class. The Action Class wraps around the business logic and it is a part of the Model. It serves to translate the HttpServletRequest to the business logic. Using the Action requires us to Subclass and to overwrite the execute() method. The parameterized class is bypassed by the ActionServlet (commad) to ActionForm through the execute() method. ActionForward is the return type for the execute method. In turn, the Struts Framework forwards requests to the file using the ActionForward according to the value of the returned ActionForward object.
Action Form
An ActionForm is a JavaBean functioning to extend org.apache.struts.action.ActionForm. When a client fills in a form and entered it, the ActionForm object will be automatically populated on the server side. The ActionForm also functions to keep the session state ongoing for web application.
photo