As mentioned, using the developer tools could work (more likely it will give you the url to the file) and right-clicking the link will work. Alternatively there are these
21 Dec 2019 Here we are going to read and write a file using JSP. page language="java" contentType="text/html; charset=ISO-8859-1" Code Line 10: Here we have given link to download a file from folder c:/guru/upload using servlet
As mentioned, using the developer tools could work (more likely it will give you the url to the file) and right-clicking the link will work. Alternatively there are these