O'Reilly logo

Apache Jakarta Commons: Reusable Java™ Components by Will Iverson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required