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

  • In Struts, .action files are associated with specific controller actions. These actions are typically mapped in struts-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