Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to create file on webserver

 
Ajit Kanada
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic