Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Writing files JSP & Servlet

 
Adrian Yan
Ranch Hand
Posts: 688
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to write a file to a local system with JSP or Servlet calls?
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic