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
I am mighty! And this is a mighty small ad:
ScroogeXHTML 7.1 - RTF to HTML5 / XHTML converter
This thread has been viewed 1277 times.
All times above are in ranch (not your local) time.
The current ranch time is
Feb 19, 2018 04:50:45
Copyright © 1998-2018