|
[Help | Solution | API Docs | Expected Output | Course Notes | Magercises | Module Intro] Help is available for each task, or you can go straight to the solution source code. Task 1
Change the skeleton code for
The client sends information to the client via the HTTP POST method.
To process this information you need to override the
The
The heart of the content, the information from the editable form,
also needs to be read from the Task 2
Write code in This part of the code has been completed for you. If you use the proper variable names earlier in the code you can use this code unmodified. Task 3Finally, as an advanced part of this Magercise, write the code to store the updated data to the disk. This is not a trivial exercise as you have to think about the problem of multiple people updating data at the same time. The problem of coordinating updates to shared information by multiple clients is solved by most database systems. The problem with HTML based clients is that the HTTP protocol does not maintain a connection between clients and server over multiple HTTP method calls. In other words, the HTTP protocol does not maintain state. There are many ways to solve this, including using hidden fields in the HTML form to store date/time values. This part of the Magercise is left unsolved because there really is no one right way to solve this problem. You need to think about the system you are building (frequency of updates, ratio of reads to updates, etc.) before you decide on a strategy to address this problem. Task 4Request the first form to be displayed by sending the URL http://localhost:8080/servlet/FormDisplayServlet? Copyright © 1998 MageLang Institute. All Rights Reserved. | ||||
|
| ||||||||||||