Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JSP and the fly likes writing from JSP to a file on the server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "writing from JSP to a file on the server" Watch "writing from JSP to a file on the server" New topic
Author

writing from JSP to a file on the server

Alex Kravets
Ranch Hand

Joined: Jan 24, 2001
Posts: 476
Hello,
How can I write something from my JSP page to a file on the server?
thanks,
Alex


All right brain, you don't like me and I don't like you, but let's just do this one thing so I can get back to killing you with beer.<br /> <br />- Homer Simpson
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61198
    
  66

Nothing prevents you from using normal Java file I/O. (You need to deal with the usual file persmissions issues on UNIX OS's.)
bear
[ November 06, 2003: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Mathias Nilsson
Ranch Hand

Joined: Oct 13, 2003
Posts: 107
Here's an example. No errorhandling etc


SCJP2 , MCP( 70-229 ) , Preparing For SCWDC
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: writing from JSP to a file on the server