Pioneered in the 1970s by Thomas McCabe, cyclomatic complexity essentially represents the number of paths through a particular method. The resulting value is related to the number of unit tests necessary to achieve full code coverage.
The look and feel of the address book is updated using a page decorating technology called SiteMesh. SiteMesh enables the developer to produce a consistent look and feel across all pages in an application. The user interface elements of header, navigation panel and footer are added to the address book web application.
Step 3: The object relational mapping tool, Hibernate, is installed and configured within the address-book web application. Hibernate will provide the mapping service that will move an Address record to and from a relational database.
Step 2: The dependency injection framework, Spring, is installed and configured within the address-book web application. In order to ensure that the state abbreviation is an exact postal service code, the state
textfield will be replaced with a
select/options list to control the value sent to the server when the form is submitted. This will give the application complete control over the string stored in our Address bean to represent a US State.
This tutorial is a multipart introduction to the development of a Create, Read, Update and Delete (CRUD) application using the Struts-2 framework. The application is a simple address-book. In this step, we'll setup the build environment and create an address form, Address book action and an Address Entry bean.
This is a demonstration of the SiteMesh page decorating package. A simple, three page, web application is constructed that includes a functional navigation bar, a header and a footer.