File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Arduino in Action
this week in the
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
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:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: How to create XML file at runtime in Projects root folder - context root in Struts1.2 or 1.3 ?
web app question
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?
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