File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Writing files JSP & Servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Writing files JSP & Servlet" Watch "Writing files JSP & Servlet" New topic

Writing files JSP & Servlet

Adrian Yan
Ranch Hand

Joined: Oct 02, 2000
Posts: 688
Is it possible to write a file to a local system with JSP or Servlet calls?
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
Yes, if by local you mean the system running the servlet container. Servlets don't run in any sort of sandbox, but they are sill subject to any limitations imposed by the underlying operating system, so on a Unix system (for example) you may not be able to write to files owned by another user.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
subject: Writing files JSP & Servlet
It's not a secret anymore!