Chapter 12. Programmable File Download

Programmable File Download

To Internet surfers, downloading files is a day-to-day activity that can be done without effort. Writing a web program that allows only authorized users to download certain files is a totally different story. Normally, the operating system or web container authentication system lets you password protect files so that file download is allowed only if the user enters the correct user name and password. However, at least two problems exist with this approach:

  • If you have more than one user, the password must be shared. However, a password is supposed to be private and confidential. The more people who know the ...

Get Java for the Web with Servlets, JSP, and EJB: A Developer’s Guide to J2EE Solutions 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.