Enhancing Your Application
In the previous tutorial, you learned how to create a web component that has input and output elements and how to bind these elements to variables and methods in your code. Now you'll add some additional features to your project that move it a bit more in the direction of being a real-world web application. The application will:-
Use a custom Java class to represent the data for a guest, rather than using three separate variables.
-
Maintain a guest list, which keeps track of all guest data (whether entered by you or multiple users of your application), rather than just the current guest.
-
Have a second component, so that the guest list is displayed in a new page rather than the same page. You'll use WebScript rather than Java to implement this component's behavior.
- Make use of additional interface elements (such as HTML tables).
Duplicating Your Project
Creating a Custom Guest Class
Keeping Track of Multiple Guests
Adding a Second Component
Using a Repetition
Adding the Finishing Touches
© 1999 Apple Computer, Inc. (Last Updated 24 Aug 99)