generated file location in tomcat
843844Mar 3 2007 — edited Mar 30 2007Hi, I hava a fairly simple JSF application which at a certain point creates an XML file.
I have created the file no problem using the DocumnetBuilder but am unsure as to how to specify where the file will be created. the code that actualy created the file is:
OutputFormat format = new OutputFormat(dom);
format.setIndenting(true);
XMLSerializer serializer = new XMLSerializer(new FileOutputStream new File("report.xml")), format);
I thought that this would place the file in the root of my applications folder in webapps but instead it places it in tomcats bin directory.
How do I specify the root of my own application?
Thanks in advance.