![]() |
|
#1
|
|||
|
|||
Showing Error as Permission DeniedHello
I have installed tomcat4 in linux environment.When i want to create an external file or any file (eg. zex.txt).It should be created outside in the specified directory. it is showing error like HTTP Status 404 - /root/zex.txt (Permission denied) type Status report message /root/zex.txt (Permission denied) description The requested resource (/root/zex.txt (Permission denied)) is not available. Apache Tomcat/4.1 Following is my jsp code: <%@page import='java.io.*'%> <%@ page contentType="text/html; charset=utf-8" %> <html> <head> <tile>SAMPLE FILE CREATOR</title> </head> <body> <form> <% PrintStream ps=new PrintStream(new FileOutputStream("/root/zex.txt")); ps.println("File" +ps + "created"); ps.close(); %> </form> </body> </html> Please help as soon as posible as it is very urgent |
Recent GIDBlog
2nd Week of IA Training by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Uploading error: permission problems | dmadd9 | MySQL / PHP Forum | 1 | 23-Apr-2005 14:56 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The