The first Jakarta Commons component we will examine is FileUpload, an aptly named library that makes it easy to add file upload capability to your web application. By using this library, a user can send a file to a web server by simply selecting a file in a web form and clicking “upload.” Anyone who has used a popular web-based email client to send a file attachment has seen file upload functionality in action (for example, Yahoo! or Hotmail).
In this chapter, we’ll look at how this library works and show how to use the key classes.
When working with a JSP or servlet, you may be accustomed to retrieving data from a
javax.servlet.ServletRequest using the
getParameterNames() methods. ...