R. Kevin Cole's Blog

April 21, 2007

Cyclomatic Complexity and Unit Tests

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.

April 5, 2007

Struts-2 Tutorial: Decorating with SiteMesh - part 4

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.

April 2, 2007

Struts-2 Tutorial: A Create, Read, Update and Delete Web Application - part 3

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.

March 14, 2007

Struts-2 Tutorial: A Create, Read, Update and Delete Web Application - part 2

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.

March 12, 2007

Struts-2 Tutorial: A Create, Read, Update and Delete Web Application - part 1

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.

February 16, 2007

Decorating the Web with SiteMesh

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.