This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
Run a Servlet
Servlet code stopped working on upgrade
Where to store class file?
Problem in running jsp page in javawebserver