Chapter 2. FileUpload
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.
Web and User Interfaces
When working with a JSP or servlet, you may be accustomed to retrieving data from a javax.servlet.ServletRequest
using the getParameter()
and getParameterNames()
methods. ...
Get Apache Jakarta Commons: Reusable Java™ Components now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.