Exercises
Here are the questions and exercises for this chapter:
- What are the constituent components of the Java EE MVC framework? What does MVC attempt to solve?
- What is the difference between
@Controller
,@Model
, and@View
? - What is the difference between the Response and Viewable types?
- Given that the standard HTML form element does not send an HTTP PUT or DELETE request, just how would you handle the removing of a record from the database using MVC? What does this mean for the businesses that already have full RESTful interfaces?
- By the time this book is published, the MVC framework will be further along and there is likely to be many milestone releases. Update your knowledge. What has changed? Look especially at the redirection and validation.
- Download the
handlebars-javaee-mvc-validation
project from the book's source code repository and adapt the product instance in order to include thedescription
(string
),manufacturer
(string
), andmanufacturedDate
(java.util.Date
) properties. What...