I am uploading with PrimeFaces where the upload is in the Project Resources folder, however I want to use another directory to store the files, preferably in the root directory where Tomcat is located.
Any suggestions on how to get this path?
I'm currently using this way: FacesContext.getCurrentInstance().getExternalContext().getRealPath("/") + "resources/files/";