Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

version of struts

 
David Dhune
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is there any way to find out the version of struts, the application I am working on i.e 1.0 or 1.1 or 1.2?

Thanks
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The latest version of struts (1.3.5) is the easiest to tell, because finally they started putting the version number as part of the jar file names.

With the earlier versions, it's a bit harder. The best way I know of to tell is to download a specific version of Struts and compare the last-modified date of the struts.jar file in that version with the last-modified date of the one you're using.

Here are some of the dates I'm aware of:

1.1 = 6/29/2003
1.2.9 = 3/9/2006
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another possible solution is to open the struts.jar file using a program like WinZip and view the MANIFEST.MF file. I took a look at a 1.1.? version and I see this information:


- Brent
 
David Dhune
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Got it! It is 1.1

Thanks Merrill and Brent.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Brent!

I learned something new today. I never thought to look in the MANIFEST.MF file for the version. It's good to know that there's an easier way than comparing dates on jar files.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic