Struts
Open-source framework for building web applications in Java
Follows the Model-View-Controller (MVC
) design pattern, which separates the application logic into three main components:
Model: Represents the data and business logic.
View: Represents the user interface (UI).
Controller: Handles user input and interacts with the Model and View.
.action
.action
In Struts,
.action
files are associated with specific controller actions. These actions are typically mapped instruts-config.xml
and serve as entry points for specific requests. A.action
URL (e.g.,/login.action
) will invoke a corresponding action class in the server-side code.The
.action
file usually maps to a Java class that contains the business logic for processing requests, such as form validation, database interactions, and data manipulation.
Last updated