What is Struts?
Struts is a framework that promotes the use of the Model-View-Controller architecture for designing large scale applications. The framework includes a set of custom tag libaries and their associated Java classes, along with various utility classes. The most powerful aspect of the Struts framework is its support for creating and processing web-based forms
How Does Struts Work?
Struts is based on the time-proven Model-View-Controller (MVC) design pattern. The MVC pattern is widely recognized as being among the most well-developed and mature design patterns in use. By using the MVC design pattern, processing is broken into three distinct sections aptly named the Model, the View, and the Controller. These are described in the following subsections:
Model Components
Model components provide a "model" of the business logic or data behind a Struts program. For example, in a Struts application that manages customer information, it may be appropriate to have a "Customer" Model component that provides program access to information about customers.
It's very common for Model components to provide interfaces to databases or back-end systems.Model components are generally standard Java classes. There is no specifically required format for a Model component, so it may be possible to reuse Java code written for other projects.
View Components
View components are those pieces of an application that present information to users and accept input. In Struts applications, these correspond to Web pages.
View components are used to display the information provided by Model components. For example, the "Customer" Model component discussed above would need a View component to display its information. Usually, there will one or more View components for each Web page in a Struts application.View components are generally built using JavaServer Page (JSP) files. Struts provides a large number of "JSP Custom Tags" (sometimes referred to as Struts Tags) which extend the normal capabilities of JSP and simplify the development of View components.
Controller Components
Controller components coordinate activities in the application.. Controller components accept data from the users, decide which Model components need to be updated, and then decide which View component needs to be called to display the results.
One of the major contributions of Controller components is that they allow the developer to remove much of the error handling logic from the JSP pages in their application. (After all, if errors in processing occur, the Controller component forwards to an error-processing View component, not the primary results View component.) This can significantly simplify the logic in the pages and make them easier to develop and maintain.
Certifications In Struts:
sun Micro System Offering SCWCD:
SCWCD: The Sun Certified Web Component Developer (SCWCD) Certification Exam has become one of the most popular certification in the J2EE domain. This certification tests the knowledge of web components used to develop J2EE applications. This certification is not specific to any J2EE application server vendor.
Source:
Website: http://www.sun.com