How to store a file on a server(web container) through a Java EE web application?
By spec, the only “real” path you are guaranteed to get form a servlet container is a temp directory. You can get that via the ServletContext.gerAttribute(“javax.servlet.context.tempdir”). However, these files are not visible to the web context (i.e. you can not publish a simple URL to deliver those files), and the files are not guaranteed in … Read more