A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
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
I agree. Here's the link:
subject: How to create XML file at runtime in Projects root folder - context root in Struts1.2 or 1.3 ?
where is my webapp?
web app question
yet another 404 status code message
solution to read a file from FacesContext
How to transfer XML file generated at client side in Struts 1.3 to MySQL Server specific path?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014