File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to create file on webserver" Watch "How to create file on webserver" New topic
Author

How to create file on webserver

Ajit Kanada
Ranch Hand

Joined: Jan 23, 2001
Posts: 95
HI
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
Ajit

Thankx
Ajit
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to create file on webserver
 
Similar Threads
JSP Taglib
Problem in running jsp page in javawebserver
Where to store class file?
Servlet code stopped working on upgrade
Run a Servlet