Meaningless Drivel is fun!*
The moose likes Struts and the fly likes which version to use?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "which version to use??" Watch "which version to use??" New topic
Author

which version to use??

Adrian Perry
Ranch Hand

Joined: Jul 21, 2005
Posts: 42
Hello,

I have with me, professional jakarta struts 1.1 by james goodwill and richard hightower. Is this the best book to learn struts and to use it as reference guide, or has it, as I fear, become obsolete?

The logon example presented by Thomas Paul, works very well for struts 1.1 but does not work for 1.2.9(the latest version I had). Then I downloaded 1.1 and application started working. So my question is should it not be the case the struts binaries, be backword compatible, which they are not. So how should one go about learning struts. Please also suggest a good book for struts. I also feel there is a need to standardize struts, though I know it is an open source and improvments keep comming up.

I also want to ask, is struts very useful in production atmostphere and how much proficiency should one gain in it. While reading some of the post, I found out that Head First Struts is not being published because Struts does not warrent so much attention, so as to publish a book on it. Does it mean struts is on its way down.

I know it is a long mail, but thanks for going through it.
Jan Groth
Ranch Hand

Joined: Feb 03, 2004
Posts: 456

So my question is should it not be the case the struts binaries, be backword compatible, which they are not.


hm, assuming that you have experience in software development, i'm sure you already faced the problem that requirements change over the time. i'd consider that a normal process, i would not blame anyone for this.

take actionerrors in 1.29. they are deprecated in this version, and will be removed in the next. why? because actionmessages take the concept to the next level...

so, no need to worry.

:-)

jan
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
Most books written for Struts 1.1 have not issued revised editions for Struts 1.2 because not much has changed. What did not work in the example? Have you checked the publisher's or author's web site for errata/updates?

Struts was a giant step forward from just using JSPs and Servlets, but today there are a number of competing web frameworks. The Struts 1.x code base will likely be phased out in favor of WebWork rebranded as "Struts 2.0".

- Brent
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
The main area where the books steer you wrong on newer versions of Struts is the <html:form> tag. They tell you to use a name and type attribute. For later versions of Struts, the only attribute you need to provide is action. After making this minor modification, all the examples provided by most of the Struts books should work just fine.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: which version to use??
 
Similar Threads
which custom tags in struts are the most important and the most necessary?
Struts 1.1 and Tomcat 5.5.9 Compitibility
question on struts page design
Struts 1.X Vs Stuts 2.0
Book recommendation for Struts 1.1