How to find the Struts version being used in a project
Asked Answered
C

5

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.

Cheliform answered 26/10, 2010 at 8:45 Comment(0)
D
25

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

Doubletongued answered 26/10, 2010 at 8:53 Comment(1)
Unable to find taglib [bean] for URI: [/tags/struts-bean].. i have checked everything but still im getting this error.Please help me resolve thisExcusatory
A
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**">
Ashleyashli answered 3/7, 2012 at 14:49 Comment(0)
F
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:

Fredella answered 20/8, 2016 at 9:40 Comment(0)
E
4

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

Ellipsis answered 20/12, 2011 at 9:41 Comment(0)
O
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

Outsert answered 2/8, 2013 at 2:52 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.