What is Struts Framework
Struts Framework is an open source web application framework used to build Java Enterprise Edition web applications quickly and efficiently. It takes the Java Servlet API and extends it further to promote the MVC (Model-View-Controller) architecture.
The Struts Framework was originally developed by Craig McClanahan and then passed to the Apache Foundation under the Apache Jakarta Project in May 2000 and became known as the Jakarta Struts. It eventually became a top-level Apache project in 2005 and was eventually replaced by Struts 2, which was released in February 2007.
The Struts Framework used the MVC design paradigm exclusively and its goal was to separate the “model,” the application logic that communicates with the database, from the “view,” ie the HTML pages presented to the customer. User and from the "controller", which is the instance that passes information between the model and the client's view.
Struts stellt bereits den Controller bereit, bei dem es sich lediglich um ein Java-Servlet namens ActionServlet handelt, das die Vorlagen erstellt, die von der Ansicht angezeigt werden. Es ist dann die Aufgabe des Web-Anwendungsprogrammierers, den Modellcode zu erstellen und, als Erweiterung, die zentrale Configuration file namens „struts-config.xml“, die das Modell, die Ansicht und den Controller miteinander verbindet.
As is common in applications using the MVS model, requests from the client or the view are sent to the controller as "actions" previously defined in the configuration file. When the controller receives the request, it invokes the appropriate action class, which then interacts with the application-specific model code.
As a result, the model returns an “ActionForward” string that informs the controller which output page should be passed to the view or the client. The information exchanged between the view and the model is in the form of JavaBeans, which are then looked up in a view-level tag library to read and write the contents of the bean without additional Java code; it acts as a translation table.