img
private List<Contact> contactData;
// Getter/setter methods omitted
}
Now we are ready to test the new contact list view. Make sure the project is rebuilt and deployed,
and then invoke the contact list view. You should see a view like the one shown in Figure 17-20.
Figure 17-20. Contact list view with jgGrid
You can play around with the grid, browse the pages, change the number of records per page,
change the sort order by clicking the column headers, and so on. i18n is also supported, and you can try
to see the grid with Chinese labels.
jqGrid also supports data filtering. For example, we can filter data by first names containing
"clarence" or when the birth date is between a date range. We will use filtering in the sample application
and will discuss it in Chapter 21.
File Upload Handling
The contact information has a field of BLOB type to store a photo, which can be uploaded from the client.
In this section, we will discuss how to implement file upload in Spring MVC.
For a long time, the standard servlet specification didn't support file upload. As a result, Spring MVC
worked with other libraries (the most common one being the Apache Commons FileUpload library,
Search WWH :
Custom Search
Previous Page
Spring Framework 3 Topic Index
Next Page
Spring Framework 3 Bookmarks
Home