Next:
Contents
TDDI48: Guest book lab (lab 2)
Jonas Kvarnström
jonkv@ida.liu.se
Version 1.1 (Thu, 05 Feb 1998 23:39:05 +0100)
Contents
Lab 2: Guest book server
General information about the lab
Creating a project
Packages
Separating constants from the code
Error handling
The <APPLET> tag
General information about Java programming
Exercise 1: File handling
Part 1: What information do you want?
Part 2: Creating a user database
Storing objects in files
Part 3: Testing your user database
Comments about the exercise
Exercise 2: Guest book applet/server
Applets and security
Starting the Java Web Server
Stopping the Java Web Server
Part 1: A network communication protocol
Part 2: Graphical design for the guest book applet
Part 3: Communicating with the guest book server
A note on object streams
Part 4: Testing your guest book
Exercise 3: Generating a guest book page
Exercise 4: Sending a message when the page changes
Sending a mail message
Exercise 5: Retrieving, changing and removing user data
Part 1: Retrieving user data
Part 2: Changing user data
Part 3: Removing user data
Comments about the exercise
Exercise 6: Using a real database
About Java Database Connectivity
Part 1: Creating a database and a table
Part 2: Writing the
JDBCDatabase
class
Some example code
Part 3: Testing your new system
Exercise 7: Servlets
Learning more about servlets
Part 1: Writing the servlet
Part 2: Testing the servlet
Exercise 8: Servlets with arguments
Exercise 9: Remote Method Invocation
Learning how to use RMI
Using RMI in the guest book server
About this document ...
Jonas Kvarnstrom
2/5/1998