A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
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
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: How to create XML file at runtime in Projects root folder - context root in Struts1.2 or 1.3 ?
solution to read a file from FacesContext
where is my webapp?
yet another 404 status code message
How to transfer XML file generated at client side in Struts 1.3 to MySQL Server specific path?
web app question
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015