I'm trying to upload a number of website directories to a server with spring, and generate links so i can view them later on. I realized i can't put web directories right into the standard resources folder because that's inside the web archive, and if i try to use an external resources folder it just gets shuffled into the web archive when the app is built. My other possible approach would be to make a separate downloads servlet, but that seems like it wouldn't work because if it only downloads the index.html file from the site, it wouldn't also show the other files that the site depends on, which is not what i want.
I understand that relying on system paths is not very portable but probably this program will only run on at most 3 or 4 linux computers so I could just set up the file path on them manually if i can't just do it from within the java program itself.