A friendly place for programming greenhorns!
How to create XML file at runtime in Projects root folder - context root in Struts1.2 or 1.3 ?
Dec 08, 2010 00:32:49
I am using NetBeans 6.9 with
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 .
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
Wink, wink, nudge, nudge, say no more ...
All times above are in ranch (not your local) time.
The current ranch time is
Nov 21, 2017 10:44:00
Copyright © 1998-2017