Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

generated file location in tomcat

843844Mar 3 2007 — edited Mar 30 2007
Hi, 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 27 2007
Added on Mar 3 2007
5 comments
145 views