Introduction xxi
Chapter 5: Building Java Web Applications with Spring Web MVC
Chapter 5 explains three key objectives of the Spring Framework: loose coupling using dependency
injection, dealing with cross-cutting concerns using AOP, and removing boilerplate code using
Spring templates. Elucidating how Spring 3 works, the chapter introduces the Spring Web MVC
architecture. Then you will learn to build your first web application using Spring 3 Web MVC. This
chapter also shows you how to build the bookstore application. You will learn to use the latest
version of the SpringSource tool suite.
Chapter 6: Component-Based Web Development Using JSF
Chapter 6 introduces you to a component-based framework called JSF 2 that is bundled with Java
EE. After you have familiarized yourself with the request-based framework presented in Chapter 4
and Chapter 5, understanding JSF 2 will be much easier. This chapter shows you how JSF 2
represents a paradigm shift in web development and introduces you to key components of the
JSF 2 architecture. After you have a firm grasp of the architecture components, this chapter shows
you how to develop your first JSF 2 application, and along with this you will learn the life-cycle
phases of a JSF 2 application. Then the chapter shows you how to integrate JSF 2 with the Spring
Framework so that you can access the database via Spring templates from the JSF 2 web layer.
Finally, the chapter shows you how to develop the bookstore application.
Chapter 7: Rapid Web Development with Grails
Grails is a rapid application development framework that lets you create web applications in record
time. Chapter 7 introduces you to two techniques of generating web applications with Grails: static
and dynamic scaffolding. The chapter then takes you through the code generated and explains
step-by-step how the code works. Having presented the code generated, this chapter shows you
how to develop the bookstore application with Grails 2. This chapter also covers unit testing, an
oft-neglected task in application development. This chapter shows you how to build tests for your
web applications using the JUnit testing framework. Then this chapter shows you how to use the
in-memory database H2. In this chapter, you will also learn to use the latest version of the
Groovy-Grails tool suite.
Chapter 8: Play with Java and Scala
Chapter 8 introduces the key web player of the Typesafe stack, the Play 2 framework, and explains how
the Typesafe stack provides an alternative to Java EE to build Java- and Scala-based applications. First
you will learn to develop a Java-based web application using Play 2. Then you will learn to develop a
Scala-based web application using Play 2. Subsequently, this chapter shows how to use the model and
access a database in Play 2.