File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
How to create XML file at runtime in Projects root folder - context root in Struts1.2 or 1.3 ?
Joined: May 17, 2010
Dec 08, 2010 00:32:49
I am using NetBeans 6.9 with Struts 1.3.8.
I want to generate XML file in project's root folder that is context root.
For e.g if project name is Sample then at context root /Sample/test.xml .
Joined: Jan 17, 2010
Dec 08, 2010 05:12:27
File file = new File(new File("sss.xml").getAbsolutePath()); BufferedWriter bw = new BufferedWriter (new OutputStreamWriter(new FileOutputStream(file))); bw.write(xmlString); bw.flush(); bw.close();
Try the above code. It may work if not refer
It is sorta covered in the
JavaRanch Style Guide
subject: How to create XML file at runtime in Projects root folder - context root in Struts1.2 or 1.3 ?
yet another 404 status code message
where is my webapp?
web app question
How to transfer XML file generated at client side in Struts 1.3 to MySQL Server specific path?
solution to read a file from FacesContext
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014