Struts 2 in Action
The original Struts project revolutionized Java web development and its rapid adoption resulted in the thousands of Struts-based applications deployed worldwide. Keeping pace with new ideas and trends, Apache Struts 2 has emerged as the product of a merger between the Apache Struts and OpenSymphony WebWork projects, united in their goal to develop an easy-to-use yet feature-rich framework. Struts 2 represents a revolution in design and ease of use when compared to classic Struts. It adds exciting and powerful features such as a plugin framework, JavaServer Faces integration, and XML-free configuration.
Struts 2 In Action introduces the Apache Struts 2 web application framework and shows you how to quickly develop professional, production-ready modern web applications. Written by Don Brown, one of the leading developers of Struts 2, Chad Davis, a passionate Struts 2 developer, along with Scott Stanlick, this book gently walks you through the key features of Struts 2 in example-driven, easy-to-digest sections.
Struts 2 in Action delivers accurate, seasoned information that can immediately be put to work. This book is designed for working Java web developers—especially those with some background in Struts 1 or WebWork. The core content, covering key framework components such as Actions, Results, and Interceptors, includes new features like the annotation-based configuration options. You’ll find chapters on Struts 2 plugins, FreeMarker, and migration from Struts 1 and WebWork 2. Finally, new topics such as the Ajax tags, Spring Framework integration, and configuration by convention give familiar subjects new depth.
What’s Inside
- Handling data and displaying content with an expression language and tag libraries
- Ajax and Struts 2
- Workflow and Struts 2 actions
- Type conversion and data validation
- Internationalization and component-oriented design
- Struts 1 and WebWork migration
- Struts 2 plugins
- Struts 2 best practices and architectures
Table of Contents
Part 1: Struts 2: a brand new framework
Chapter 1. Struts 2: the modern web application framework
Chapter 2. Saying hello to Struts 2
Part 2: Core concepts: actions, interceptors, and type conversion
Chapter 3. Working with Struts 2 actions
Chapter 4. Adding workflow with interceptors
Chapter 5. Data transfer: OGNL and type conversion
Part 3: Building the view: tags and results
Chapter 6. Building a view: tags
Chapter 7. UI component tags
Chapter 8. Results in detail
Part 4: Improving your application
Chapter 9. Integrating with Spring and Hibernate/JPA
Chapter 10. Exploring the validation framework
Chapter 11. Understanding internationalization
Part 5: Advanced topics and best practices
Chapter 12. Extending Struts 2 with plug-ins
Chapter 13. Best practices
Chapter 14. Migration from Struts Classic
Chapter 15. Advanced topics
Book Details
- Paperback: 432 pages
- Publisher: Manning Publications (May 2008)
- Language: English
- ISBN-10: 193398807X
- ISBN-13: 978-1933988078