Overview of the Struts Framework
by, 02-25-2012 at 08:45 PM (768 Views)
Struts framework has been organized in twelve “top leveled packages”. It consists of three hundred interfaces and classes. Interfaces as well as classes are provided by struts framework to work along with controller or presentation, with custom tag libraries support.
The Struts view is detailed here:
- The Struts Controller Components: All user requests are handled by the Struts Action Servlet. A request is been received, URL is interpreted and Configuration files are been looked up for Action class for handling. Action class is controller’s part. It makes it possible to communicate with model layer.
- The Struts View Components: The basic function of the Struts view components is to get the input and render information or data to user. Information that is given by the model components is rendered by them. Common approach is the JSP usage for rendering information and view. Java scripts and custom tags are used for providing assistance in rendering process.
- The Struts Model Components: Business logic layer is provided by the Struts model component for Struts program. Its interaction takes place with back end system or database. Model components are basically considered to be the java classes. According to the needs of clients, selection of model is done.