GeeCON Prague 2014*
The moose likes Struts and the fly likes Struts 1.2 compared to 1.3 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 1.2 compared to 1.3" Watch "Struts 1.2 compared to 1.3" New topic
Author

Struts 1.2 compared to 1.3

Stan Franklin
Greenhorn

Joined: Jan 06, 2005
Posts: 1
We're currently using Struts version 1.2 (I believe).
I recently purchased a Struts manual that includes 1.3, but it doesn't specify which parts are new in 1.3.
I'm not looking to get into a discussion here on which book is best, etc.
Is there a godd reference site that has the difference between 1.2 and 1.3?
On a related note, our project includes 'struts.jar'.
What's the best way to determine which Struts version is in the jar?
The 'license' file contains 'version 2.0', so I'm guessing it refers to Struts 1.2.
If we switch to the struts jar for 1.3, is it upwards compatible,
so that all our current code developed under 1.2 should work as before?
I don't really want to jump to Struts 2.X: might be too big of a change.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Originally posted by Etienne Jg:

Is there a godd reference site that has the difference between 1.2 and 1.3?

This link gives a pretty good overview of the differences.
Originally posted by Etienne Jg:

What's the best way to determine which Struts version is in the jar?

You'll find the version of the jar file by unjarring the file and looking at the META-INF/MANIFEST.MF file
Originally posted by Etienne Jg:

If we switch to the struts jar for 1.3, is it upwards compatible,
so that all our current code developed under 1.2 should work as before?

You will find it's pretty much backward compatible with a few small excpetions, such as the use of the cancel button. I always cringe a little, though, when someone talks about swapping out the struts.jar file. It's important to realize that you can't just switch the struts.jar file when going from one version to the next. You must swap out the entire set of jar files in the WEB-INF/lib folder, and when going from 1.2 to 1.3, you must also change the DTD references in your XML files.
[ August 02, 2007: Message edited by: Merrill Higginson ]

Merrill
Consultant, Sima Solutions
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
etienneJava,

One other note:

The name you are currently displaying does not meet the guidelines of the JavaRanch Naming Policy. In particular, the name you display must be a first and last name, and must not be obviously fictitious. Please change the Publicly Displayed Name in your user profile so that it meets the guidelines.

This may seem trivial to you, but it's an important part of the culture at JavaRanch, and we do appreciate your compliance with it.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Struts 1.2 compared to 1.3