Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
In this chapter, an application was shown demonstrating the use of the FileUpload component to add file uploads to a web application. In the next chapter, this will be flipped around to look at a library intended to help a client application download data from a web server.
Project IdeasUse FileUpload in conjunction with the FTP component of the Net package (described in Chapter 4, “Net”) to allow users to post files to an FTP server via a browser. Create a web version of a file system browser. Add security and mechanisms for implementing common file system commands such as move, copy, rename, and delete. Use FileUpload to add file upload capability. Use the Codec package (described in Chapter 12, “Codec”) to encode files stored on disk uploaded via FileUpload. Write a program to examine the different file upload characteristics as provided by as many different browsers as possible (e.g., Mozilla Netscape, Mozilla Firefox, different versions of Internet Explorer for Mac OS and Windows, Lynx, Mac OS X Safari, Opera . . .). Add performance metrics to compare different browsers. Does the servlet container (e.g., Apache Jakarta Tomcat) affect the performance? |