Chapter 4. Web Application Development with Spring Web MVC

In this chapter, we will cover:

  • Auto-generating Spring MVC controllers and JSPX views from JPA entities
  • Packaging, deploying, and using Roo-generated Spring MVC application
  • Modifying Roo-generated views
  • Round-tripping support in Spring Roo for web controllers and views
  • Creating a Spring MVC controller for a specific JPA entity
  • Manually creating a Spring MVC controller for a JPA entity
  • Adding static views to Roo-generated web applications
  • Internationalizing Roo-generated web applications
  • Adding or modifying themes generated by Roo
  • Adding JSON support to domain objects and controllers
  • Creating and executing Selenium tests for web controllers

Introduction

In Chapter 2, Persisting Objects Using JPA and Chapter 3, Advanced JPA Support in Spring Roo, we looked at how domain layer of an application can be quickly developed using a JPA add-on of Spring Roo. In this chapter, we'll look at how Spring Roo simplifies developing the web layer of an enterprise application using Spring Web MVC. We'll also look at how Spring Roo lets you quickly test your web application locally.

Tip

You can use Roo in developing your enterprise application's persistence layer even if the web framework that you want to use is not supported by Roo. For instance, if you are developing a web application using Wicket, you can still use Roo to generate the persistence layer of your application. Similarly, if you are developing a Swing application, you can use Roo for creating the persistence layer.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.17.18