aspose file tools*
The moose likes Struts and the fly likes version of struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "version of struts" Watch "version of struts" New topic
Author

version of struts

David Dhune
Greenhorn

Joined: Sep 28, 2006
Posts: 14
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

Joined: Feb 15, 2005
Posts: 4864
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


Merrill
Consultant, Sima Solutions
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
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

Joined: Sep 28, 2006
Posts: 14
Got it! It is 1.1

Thanks Merrill and Brent.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
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.
 
jQuery in Action, 2nd edition
 
subject: version of struts