File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Problem creating files from JSP" Watch "Problem creating files from JSP" New topic

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
I agree. Here's the link:
subject: Problem creating files from JSP
It's not a secret anymore!