Managing Files in the Personal Space

After a user has uploaded files to her personal directory, you should allow her to browse her files and delete them as well.

Listing Files

In this section, we will list the user's files that were uploaded using the utility described earlier. We will continue to use the MVC design that we implemented in the previous chapter. The data flows between the different components are shown in Figure 9.9.

Developing the Model

First, you will need to develop the model, FileInfo, that contains information about a file in the directory listing. Table 9.4 lists the properties of the bean.

Table 9.4. Properties of station.auction.personalization.FileInfo
Property Type Description
name String The filename ...

Get Java Server Pages from scratch now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.