Как я могу реализовать простой сервлет загрузки файлов?
Идея состоит в том, что с запросом GET index.jsp?filename=file.txt
пользователь может загрузить, например. file.txt
из сервлета файла, и сервлет файла загрузит этот файл пользователю.
Я могу получить файл, но как я могу реализовать загрузку файла?