What are the features and functionality of Apache Struts?

Asked

Viewed 275 times

1

I do not know what the structure and functioning of this framework is like, but from what I have read about it, it has been widely used in Web development.

What are the characteristics and functionalities of Apache Struts?

1 answer

2


Denis,

Apache Struts, both 1 and 2, is a framework widely used in industry. Mainly as a solution for systems that benefit from the MVC architecture. No doubt, you will find many projects using it.

In my experience I have seen many applications migrating to Spring MVC. So I can tell you that there are not many new projects being built on Struts anymore, at least not in the media where I am. I have also worked with Struts 1, and I can say that it is inferior to Spring MVC 3.0, as the latter offers more functionality and better Separation of Concerns in addition to better decoupling, because in Struts one is necessary to inherit classes, as the Actionforms

The main advantages I noticed when working with him were:

  • A rich taglib for creating .Jsps. There were many self-explanatory tags that I could use with ease, for at least at that time generate dynamic HTML content
  • Render Pojos, mapping them directly to properties described in JSP tags, the problem is that I had to write classes Adapters for he only rendered Formbeans(inherited classes of Struts components).
  • Took me away from direct programming with Servlets(Servlet API), because it already abstracts this layer.
  • It allowed me to associate pages with Urls, and these Urls with Actions, which has the role of Controller in Struts( o C of MVC)

What features and features of Apache Struts?

Core features

  • Architecture of the connectable structure that allows life cycles request can be customized for each Action.
  • Flexible validation structure that allows validation rules can be decoupled from Action code.
  • Hierarchical approach to internationalization that simplifies application localization.
  • Automatic type conversion that transparently maps HTTP values for native Java data objects, solving one of the more tedious efforts when creating web applications.
  • Integrated dependency injection engine that manages the component life and dependencies.
  • Modular configuration files that use packages and namespaces for simplify the management of large projects with hundreds of Actions.
  • Java 5 annotations available (declarative programming)

Here is a comparison between version 1 and 2:

https://struts.apache.org/docs/comparing-struts-1-and-2.html

Browser other questions tagged

You are not signed in. Login or sign up in order to post.