29

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.

Van de Graff
  • 5,043
  • 13
  • 39
  • 41

5 Answers5

24

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

angelcervera
  • 3,699
  • 1
  • 40
  • 68
  • Unable to find taglib [bean] for URI: [/tags/struts-bean].. i have checked everything but still im getting this error.Please help me resolve this – deepakl.2000 Jul 28 '22 at 15:21
11

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**">
Community
  • 1
  • 1
user1453851
  • 129
  • 1
  • 5
5

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:

Netzschrauber
  • 101
  • 2
  • 2
4

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

VikC
  • 389
  • 1
  • 3
  • 9
3

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