wood burning stoves 2.0
The moose likes Servlets and the fly likes How to create file on webserver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to create file on webserver" Watch "How to create file on webserver" New topic

How to create file on webserver

Ajit Kanada
Ranch Hand

Joined: Jan 23, 2001
Posts: 95
I m using servlet to create xml file.How can create the file on the server
I m using javawebserver..i tried with following code
pw = new PrintWriter(new PrintStream(new FileOutputStream("/javaWebServer2.0/ajit.xml")));
but i m getting following error
CreateXML is my class..
com.ms.security.SecurityExceptionEx[CreateXML.<init>]: cannot access file /javaWebServer2.0/ajit.xml
can somebody help me
thanx in advance

I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: How to create file on webserver
jQuery in Action, 3rd edition