There is a set of pdf-files with instructions in different languages ​​and a button on the Jsp-page. It is necessary to attach to this button the display of these files in the browser or download for the respective language. Downloading is preferably done by the browser. That is, the usual procedure: follow the link and either opens or asks to open or save as standard. Where do I put the files in the project and how to set links to them?

    1 answer 1

    Here is a description of the structure of the web module http://docs.oracle.com/javaee/5/tutorial/doc/bnadx.html

    All static files can be put in the root folder with web content. If the root folder is called webapp and you place your static files webapp / instructions / myfile.pdf, then the link will look like this:

    href = [web application context] /instructions/myfile.pdf

    • Thanks, works - Helena2977