Hello.
Is it possible for a Java Servlet to create a file on a tomcat web server? What I mean is, is there a way through code that I can get the path for my tomcat root directory and place the file on the same path? I can create the file using my own installation of Tomcat because I know the path to the ROOT folder but how can you get the path if your web app is hosted by a remote company?
I am trying to create an XML file when I update my stock listing so that other users can download this file for their own use.
Thanks.
Is it possible for a Java Servlet to create a file on a tomcat web server? What I mean is, is there a way through code that I can get the path for my tomcat root directory and place the file on the same path? I can create the file using my own installation of Tomcat because I know the path to the ROOT folder but how can you get the path if your web app is hosted by a remote company?
I am trying to create an XML file when I update my stock listing so that other users can download this file for their own use.
Thanks.