Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
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
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
web app question
where is my webapp?
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-2013