What Is Struts

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

What is Struts ? Struts is an open source Web application framework developed as Apache Jakarta project.

Struts is an implementation of Model-View-Controller (MVC) framework

Used for constructing web applications using Servlets and JSPs Pattern oriented- Singleton, composition, delegate Easy to use and learn Includes JSP custom tag libraries Why Struts ? Takes much of the complexity out of building your own MVC framework Encourages good design practice and modeling Easy to learn and use Feature-rich Many supported 3rd-party tools Flexible and extensible Large user community Stable and mature Open source

What are the different types of Actions available in Struts ? Struts FAQs DispatchAction: One of the built-in actions provided by the struts framework. The collection of related functions into a single Action is possible using this action. It allows eliminating the creation of multiple independent actions for each function. ActionDispatcher: It is a helper class which dispatches to a method that is in Action. This class provides an alternative mechanism for using DispatchAction. With the help of various types of mechanisms, the dispatching behavior can be easily implemented into an Action without inheritance of a particular super Action class. LookupDispatchAction: The subclass mapped execute() method is dispatched by this abstract Action class. This process is useful where a HTML form has many clicks on submit buttons with the same name. The corresponding ActionMappings parameter property specifies the button name.

Forward Action and IncludeAction:

These forward and include the context-relative URI specified by the parameter property of our associated ActionMapping. Explain about Tiles ? Tiles allow template mechanism to be present in your components. You can compose a presentation layer from different components such as footer, header and content components. This form of composition helps in validating web forms much easier.

You might also like