aspose 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
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
It is sorta covered in the JavaRanch Style Guide.
subject: Problem creating files from JSP