Book Image

Apache Struts 2 Web Application Development

By : Dave Newton
Book Image

Apache Struts 2 Web Application Development

By: Dave Newton

Overview of this book

<p>Struts 2.1 is a modern, extensible, agile web application framework suitable for both small- and large-scale web applications.<br /><br />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.<br /><br />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.<br /><br />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.<br /><br />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.</p>
Table of Contents (21 chapters)
Apache Struts 2 Web Application Development
Credits
About the Author
Acknowledgement
About the Reviewers
Preface

Other forms of testing


There are many other forms of testing and development methodologies, and ways of integrating them into the process. We'll take a very brief look at other test tools in our arsenal. There are essentially an unlimited number of ways any of these methods fit into our development process. It is often dependent on the type of application, the nature of the client relationship, and so on.

It's possible to develop every application with some level of the following practices in place. The peace of mind they can provide is generally worth the additional effort, and when automated, they provide free benefits for the rest of the life of the project.

Acceptance testing

The client-focused Selenium testing discussed earlier may be used as a part of an acceptance testing process. Acceptance testing can be used to verify the correct operation of our user stories (remember those?)

When we unit-tested our Struts 2 action for listing recipes, we had a couple of "mini stories" accompanying...