Van de Graff
Van de Graff

Reputation: 5183

How to find the Struts version being used in a project

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.

Upvotes: 29

Views: 79448

Answers (5)

Netzschrauber
Netzschrauber

Reputation: 101

On a Windows system:

  1. Open file explorer, search for struts*.jar
  2. Open struts-core.jar with a unzip tool (e.g. IZArc2Go)
  3. Open META-INF folder and open MANIFEST.MF file with a text editor
  4. There you will find Specification-Version: with the version number

Some additional release info:

Upvotes: 5

Azeem Mudassar
Azeem Mudassar

Reputation: 31

Dont refer to the Manifest-version. instead you refer to the "Specification-Version"

Eg: Specification-Version: 1.2.4

That means the struts verison is 1.2.4

Upvotes: 3

user1453851
user1453851

Reputation: 129

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**">

Upvotes: 11

VikC
VikC

Reputation: 389

and the property to look at in manifest.mf is 'Specification-Version'

Upvotes: 4

angelcervera
angelcervera

Reputation: 4209

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

Upvotes: 25

Related Questions