This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts 2 Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 Question" Watch "Struts 2 Question" New topic
Author

Struts 2 Question

Paul Wallace
Ranch Hand

Joined: Oct 09, 2006
Posts: 40
Does this book cover migrating applications from Struts 1.x to Struts 2.x?

Is it feasible to migrate or are the paradigms very different?

Does the book draw comparisions with Struts 1.x so that developers moving from Struts 1.x to 2.x can benefit from their existing knowledge?

Regards

Paul
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Does this book cover migrating applications from Struts 1.x to Struts 2.x?

No, it doesn't.

Is it feasible to migrate or are the paradigms very different?

Struts 2 is pretty different, possibly making a straight migration time-consuming. On the conceptual front the differences are relatively minor, but there's a fair amount of busy-work involved. There's no reason the same web app can't use both Struts 1 *and* Struts 2, making an incremental migration relatively straight-forward.

I've migrated two applications; the biggest differences were the tag libraries (largely mechanical translation), the action classes themselves (Struts 2 is much cleaner; the ease of conversion of the Java code depends largely on how clean the Struts 1 code is), and some validation differences.

Does the book draw comparisions with Struts 1.x so that developers moving from Struts 1.x to 2.x can benefit from their existing knowledge?

Only minimally. To be honest, most Struts 1 knowledge isn't particularly helpful, and the S1 knowledge that *is* is general web application knowledge. There are few similarities between the two frameworks.

The Struts 2 documentation wiki contains a couple pages which might be of interest to those converting an existing application:

- Comparing Struts 1 and 2
- Struts 1 Solutions

Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2 Question
 
Similar Threads
Struts2 in Action: Book Question
Struts 2 in Action
Apache Struts 2 Web Application Development - What's new?
Struts Design and Programming by Budi Kurniawan
Difference between struts 1.1 and 1.2