Struts 2

Apache Struts 2, these are the most popular and much talked about Java web frameworks today. Many of you might have worked with these frameworks.

Well, Apache Struts 2 is an elegant and extensible framework that is used for creating enterprise-level Java web applications. It is designed to streamline the development cycle, starting from building to deployment and maintenance of the application. In Struts, the object that is taking care of a request and routes it for further processing is known as “Action”.

Apache Struts is a free, open-source, MVC framework for creating elegant, modern Java web applications. It favors convention over configuration, is extensible using a plugin architecture, and ships with plugins to support REST, AJAX and JSON.

Struts 2 features

Configurable MVC components, which are stored in struts.xml file. If you want to change anything, you can easily do it in the xml file.

POJO based actions. Struts 2 action class is Plain Old Java Object, which prevents developers to implement any interface or inherit any class

Support for Ajax, which is used to make asynchronous request. It only sends needed field data rather than providing unnecessary information, which at the end improves the performance.

Whether you want to use JSP, freemarker, velocity or anything else, you can use different kinds of result types in Struts 2.

You can also leverage from various tags like UI tags, Data tags, control tags and more.