You are correct.  I clicked on the TOC link and there were several sections
that I had missed.  Not sure how it happened but thanks for putting me on
the right track.


-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
Michael Weller
Sent: Wednesday, January 23, 2002 11:56 AM
To: [EMAIL PROTECTED]
Subject: Re: Java file i/o routines


hi!
if you really worked through the java tutorial this should be dead obvious:
eighter you use flat files (using the java.io package, writers for text
data, streams for binary data:
http://java.sun.com/docs/books/tutorial/essential/io/index.html) or a
database (using the JDBC API:
http://java.sun.com/docs/books/tutorial/jdbc/index.html) to save your data.
AFAIK, it makes no difference whether you use these apis in a servlet, an
application, an applet, except some SecurityManagers might complain if you
use them in an applet and don't have permission.

-mw

| Hello, I have successfully setup tomcat4 on LM8.1 and have been fiddling
| about with some of the example servlets, and have completely gone through
| the java tutorial on sun's site.  What I didn't encounter was any
tutorials
| on file i/o routines where I can save user information to a data file and
| read back and posted.  I thought this kind of odd, since most programs do
| read/write data to files.  I downloaded a very simple application.  It's a
| guest book application that is pretty much bare bones.  It keeps the
entries
| in memory and loses the data if I restart tomcat.  I want to be able to
save
| these entries and have them read for display.  Can anybody point me to
some
| good online tutorials that cover file i/o using servlets?
| Thanks
| Don
|
|

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to