Apache Struts 2 Web Application Development: Design, Develop, Test, and Deploy Your Web Applications Using the Struts 2 Framework

  • 5h 20m
  • Dave Newton
  • Packt Publishing
  • 2009

Struts 2.1 is a modern, extensible, agile web application framework suitable for both small- and large-scale web applications.

The book begins with a comprehensive look at Struts 2.1 basics, interspersed with detours into more advanced development topics. You'll learn about configuring Struts 2.1 actions, results, and interceptors via both XML and Java annotations. You'll get an introduction to most of the Struts 2.1 custom tags and learn how they can assist in rapid application prototyping and development.

From there you'll make your way into Struts 2.1's strong support for form validation and type conversion, which allows you to treat your form values as domain objects without cluttering your code. A look at Struts 2.1's interceptors is the final piece of the Struts 2.1 puzzle, allowing you to leverage the standard Struts 2 interceptors as well as implement your own custom behavior.

After covering Struts 2.1 you'll journey into the world of JavaScript, a surprisingly capable language, the Document Object Model (DOM), and CSS, and learn how to create clean and concise client-side behavior. You'll leverage that knowledge as you move on to Struts 2 themes and templates, which give you a powerful way to encapsulate site-wide user interface behavior.

The book closes with a look at some tools that make the application development life cycle easier to manage, particularly in a team environment, and more automatic.

About the Author

Dave has been programming for as long as he can remember, and probably a bit longer than that. He began by playing a Star Trek game on a library computer, and quickly graduated to educating his grade school teachers about computers and the BASIC language. Receiving a TRS-80 Model 1 was pretty much the end of his social life, and he's never looked back.

A diverse background in both programming languages and problem spaces has provided him with a wide range of experience. Using a diverse set of languages, which includes Pascal, Forth, Fortran, Lisp, Smalltalk, assembly, C/C++, Java, and Ruby, brings an appreciation for many programming paradigms. Working on AI, embedded systems, device drivers, and both desktop and web application programming, has brought him an appreciation for the problems and solutions that each environment offers.

In this Book

  • Chapter 1: Struts and Agile Development
  • Chapter 2: Basic Configuration
  • Chapter 3: Actions and ActionSupport
  • Chapter 4: Results and Result Types
  • Chapter 5: OGNL, the Value Stack, and Custom Tags
  • Chapter 6: Form Tags
  • Chapter 7: Form Validation and Type Conversion
  • Chapter 8: Interceptors
  • Chapter 9: Exceptions and Logging
  • Chapter 10: Getting Started with JavaScript
  • Chapter 11: Advanced JavaScript, the DOM, and CSS
  • Chapter 12: Themes and Templates
  • Chapter 13: Rich Internet Applications
  • Chapter 14: Comprehensive Testing
  • Chapter 15: Documenting our Application
SHOW MORE
FREE ACCESS