How to find the Struts version being used in a Web Application project in Eclipse?
My struts-config.xml says
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
Thanks.
Struts 2.5. 22 is the most current version of the Struts 2 framework and was released on November 29, 2019.
The only way to know if Apache Struts exists within them is to search for every JAR, WAR, and EAR file on disk, unpack and examine them to confidently identify the versions.
Struts 2 development is still active and, as of writing this article, the newest version is 2.5. 25. If you would like to start with Struts 2, remember that minimum requirements are Servlet API 2.4, JSP 2.0 and Java 7.
Apache Struts 1. x, the original version of the Java EE Web application development framework, has reached the "end of life," according to the Apache Software Foundation (ASF), and is no longer officially supported.
Open struts jar and read version in MANIFEST file, inside META-INF folder.
We can find out the struts version by observing the doctype of the Struts-config file. For Example if your struts config file contains the below DTD then we can say that it is Struts 1.1 version.
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/**struts-config_1_1.dtd**">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With