I want to send the link which contains a path to the any file that is located in Server whenever user clicks the button. How can I do this in JSP?
For example, my file is stored in web-inf/temp0001111/JspContext.pdf.
So, whenever user click this link, then this file get downloaded into browser and allow the user to save.and also need to specify the life time of this link is to only 3 days.
How can I achieve this?