Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find the Struts version being used in a project

Tags:

struts

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.

like image 907
Van de Graff Avatar asked Oct 26 '10 08:10

Van de Graff


People also ask

What is the current version of Struts?

Struts 2.5. 22 is the most current version of the Struts 2 framework and was released on November 29, 2019.

How do you check if Apache Struts is installed?

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.

Is Struts 2 still used?

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.

Is Struts 1 still supported?

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.


2 Answers

Open struts jar and read version in MANIFEST file, inside META-INF folder.

like image 69
angelcervera Avatar answered Sep 19 '22 17:09

angelcervera


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**"> 
like image 35
user1453851 Avatar answered Sep 20 '22 17:09

user1453851