img
Figure 17-11. Contact list view with link to show contact view
Clicking any link will bring you to the show contact view. Figure 17-12 shows the screen after
clicking the first link.
Figure 17-12. Show contact view
Implementing the Edit Contact View
Let's implement the view for editing a contact. It's the same as the show view; first we add the methods
updateForm() and update() to the ContactController class. Listing 17-31 shows the code snippet for the
two methods.
Listing 17-31. Code Snippet for Update Contact
package com.apress.prospring3.ch17.web.controller;
// Import statements omitted
@RequestMapping("/contacts")
@Controller
Search WWH :
Custom Search
Previous Page
Spring Framework 3 Topic Index
Next Page
Spring Framework 3 Bookmarks
Home