tags:

views:

691

answers:

5

I want learn it for abc.

And I'd like to know what's the difference between struts 1 and struts 2.

+4  A: 

Check this free book:

Also here you can find some good basic code examples.

For a Struts 1 vs. Struts 2 comparative, check this.

CMS
A: 

I haven't read the specific book, but I generally have good experience with Manning books, so I would recommend Struts 2 in Action.

Also, I would generally recommend to start directly from Struts 2 as it has some adantages over the 1.x versions. However, if you are using Eclipse, I am not aware of any plug-ins for Struts 2. This could be a problem for a new user. For Netbeans there is this, but I haven't used it myself. For Struts 1.x there are mature plug-ins both for Eclipse and Netbeans.

kgiannakakis
A: 

I recommend struts 2 also.

The book Struts 2 in Action I also recommend.

The Struts 2 Apache web site has a great reference and lots of tutorials, once you start moving away from the book. Use that site, and avoid RoseIndia if you can.

mieze
A: 

I've had a bit of experience with Struts1 and Struts2. First off, Struts1 and 2 are different because Struts2 is not a direct evolution of Struts1 but rather it comes from another framework called WebWork. There are still a few similarities around the MVC pattern (Action classes, etc.). The validation and configuration XML files change. Struts2 uses the Dojo toolkit for many of it's JavaScript functionality. IMHO Struts2 has more features and improvements over Struts1, although it's probably not so widely spread in use as Struts1 is, at least not yet...

xgMz
+1  A: 

Personal opinion. Jakarta Struts For Dummies is really a piece of art from newbies.

It makes the shifting from jsp/servlet to struts so easy;)

Winston Chen