
Enhancing Your Application
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
- Binding the Class's Instance Variables to the Form Elements
- Creating a Table to Display the Output
- Adding Dynamic Elements to Table Cells
- Binding the Dynamic Elements in the Table
- Creating the Guest Object
- Keeping Track of Multiple Guests
- Creating a Guest List
- Adding Guests to the Guest List
- Adding a Second Component
- Using a Repetition
- Adding the Finishing Touches
- Clearing the Guest List
- Adding a Dynamic Hyperlink