title: How to create a file in webroot during runtime in java web project?
body: <p>Hi i must create a XML file in the project using java dynamically and must read it using the base Path URL. i can read the File when i create it manually, but not able to create it dynamically. When i use <strong>File f1 = new File("test.XML");</strong> it create the file in the <strong>tomcat's Bin folder</strong>. The file must be created in the Project while Running in both Tomcat and Jboss EAP 6.</p>