I am trying to write an uploaded multipart file to the filesystem. I have a directory called audio which sits in the root of my web application (not inside WEB-INF, but bes
Getting server url using ServletContext is not safe across different environments.
ServletContext
It would be better to retrieve the url from a property file.