Using Your Favorite Dynamic Language With Apache Struts 2

If you think that Apache Struts is not relevant nowadays, then you haven’t yet read the story of how one can make it hard to beat. We all agree that we are living in a modern web where the trends are SPA, PWA, and the like and that the way people are still using it today does not fit at all into that mindset. But the real strength of a framework lies in its capacity not to be resilient, but to be able to embrace change, and Apache Struts is doing well by remaining flexible and customizable. Then for now, and while waiting for my next articles for a deep view, let us dive into the process of embedding your favorite dynamic language in your web application to write your actions without the use of the deprecated struts-scripting plugin.
At startup, if you don’t exclude it, a base configuration file named struts-default.xml provided in the struts2-core jar file is automatically included to provide the standard configuration settings without having to copy them, and providing your own custom file is the way to make Apache Struts more lightweight or to exclude the Jakarta Multipart parser that is used for file uploads and which was subject to a vulnerability, if, like me, you can’t upgrade yet.