Expert Spring MVC and Web Flow

(Dana P.) #1

return first + " " + last;
}
}


Listing 6-41 contains the XHTML that matches the Personobject, while Figure 6-3 shows
how the form is rendered. Note that Listing 6-41 deliberately omits the use of the
tags, in order to illustrate the raw XHTML required. This is the XHTML as the browser would see
it. Obviously, this also illustrates that the use of and related tags are not required,
though they are recommended for any real projects.


Listing 6-41.XHTML Form for Person


<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">




Person Form























First Name:
Last Name:
Born On:
Favorite Programming Language:





CHAPTER 6 ■THE CONTROLLER MENAGERIE 157
Free download pdf