File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Problem creating files from JSP 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 » JSP
Bookmark "Problem creating files from JSP" Watch "Problem creating files from JSP" New topic
Author

Problem creating files from JSP

Jay Ashar
Ranch Hand

Joined: Oct 13, 2002
Posts: 208
Hi all...I have this code in JSP which creates the file on the server

When is compile this code from java class and just try to run it using java filename it creates the file fine, but problem is when I do the same thing from JSP its not creating any files nor is it hsowing any errors. Does anybody had a problem like this before?? I also tried calling java class from JSP page but its still not creating any files.
Thanks in advance.


SCJP 1.4<br />SCWCD 1.3
danny liu
Ranch Hand

Joined: Jan 22, 2004
Posts: 185
check the account that Tomcat is running under.
if it is a system account, you can write or delete a file on the server
Dan
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Problem creating files from JSP
 
Similar Threads
can't able to write in file & Path class not found
how to see how control is moving in a java program during execution
Java IO Problem
not able to create a file from jsp by calling java function
Question about File, FileWriter + BufferedWriter