by Bryce Curtis
This prototype demonstrates the use of IIOP messaging over an HTTP connection
between an applet and a Netscape servlet. Its purpose is to demonstrate
IIOP and the MOFW working together to implement a full-function java application.
A travel reservation system has been written using a single applet that
has several windows. This applet uses IIOP to communicate with remote Java
objects located on a Netscape server.
The applet called by the html page is Trs. It shows
an image with hotspots to click on. The user has the option to:
This is the main page for the TRS application. There are several hotspots on the image that perform several different functions or load other HTML pages. When the mouse is over one of these hotspots, the status line on the browser will identify the option.
From this page the user can click on the following hotspots:
The only selection that forces the user to logon is the "List Trips". The user is permitted to browse travel services without being loggon on, until he is ready to make a reservation. If not logged on, the trip will be assigned to the "Unknown" user. If the unknown user starts a trip, then leaves before making a reservation, the trip may be deleted by the server after a day.
The logon page is shown when the use selects it from the main page or before the user can make or view the list of reservations. After successfully logging on, the list of reservations or reservation confirmation page is shown, depending on what the user was attempting to do.
This is the list of trips window when a trip is Pending or Confirmed. Trips are classified as:
If the trip is Pending or Confirmed, it can be edited or cancelled. Taken trips can only be viewed or removed as shown below. Double-clicking a trip will begin editing or viewing it.
Edit Trip Window - General Panel
This is the first panel that is shown when a user wants to make a new trip. It is contained by the Edit Trip window. Each trip should have a trip name that makes it easy for the user to identify it. The leave and return dates of the trip, and the origination and destination cities need to be selected. This information will be used as search criteria for flights, car, and hotel lists displayed on the following panels. To make a reservation the "Make Reservation" button on the Summary panel is pressed.
In the constructor of the Edit Trip window a new Trip object. When the "General" panel is left, the Trip object is updated with any changes made to the panel. When another panel is displayed, it must check the Trip object to see if any changes were made that affect the displayed list of services. If so, a new query will be performed. If the query does not return the previously selected service the old reservation will be cancelled.
Edit Trip Window - Orig Flight Panel
This panel displays the flights for the day from the origination city to the destination city. It is sorted by departure time. To select a flight to add to the trip, double-click on the "Sel" column. The columns contain the following information:
If the "Airline" column is double-clicked, then the airline's web page is loaded in the browser. If the "Plane" column is double-clicked, then a picture of the airplane is shown. If the class drop-down box is changed, then a new search will be performed. (Currently not supported)
Edit Trip Window - Select Airplane Seat
This panel displays an image of the airplane seats and lets the user pick one by clicking on it. There is currently no check for unavailable seats, or seats that don't match the class. The same image will be loaded for any type of plane.
Edit Trip Window - Car Rental Panel
This panel displays the rental car services available at the destination city. To select a car to add to the trip, double-click on the "Sel" column. The columns contain the following information:
If the "Company" column is double-clicked, then the rental agency's web page is loaded in the browser. If the "Type of Car" column is double-clicked, then a picture of the car is shown. If the "Type of Car" drop-down list is changed, then a new search is performed and a new table is obtained.
Edit Trip Window - Hotel Panel
This panel displays the hotel services available at the destination city. To select a hotel to add to the trip, double-click on the "Sel" column. The columns contain the following information:
If the "Hotel" column is double-clicked, then the hotels's web page is loaded in the browser. If the "Room Type" column is double-clicked, then a picture of the room is shown (not implemented). If the "Room Rate" drop-down list is changed, then a new search is performed and a new table is obtained (not implemented). The "Address" and "Info" fields identify the hotel that is currently highlighted in the list.
Edit Trip Window - Summary Panel
This panel displays a summary of the trip itenerary. To make the reservation press the "Make Reservation" button. This will confirm that the travel services are still available, and return confirmation numbers. If a service is not available, the user will need to select a new service, but the others are confirmed. If existing confirmed services are replaced by new services, they will be unconfirmed before the new services are confirmed.
Preferences Panel - General Panel
The user enters their name and other pertinent information typically required.
Preferences Panel - Home and Work Address Panel
The user enters their work and home address, phone numbers, fax numbers, and email. Currently there is a limitation of cities to be either: Austin, Atlanta, Boca Raton, New York, Dallas, Chicago, and Los Angeles.
Preferences Panel - Credit Card Panel
Up to five credit cards can be entered and used when paying for a reservation.
Preferences Panel - Airline Preferences Panel
Currently this panel does not affect the result of the query for flights.
Preferences Panel - Rental Car Preferences Panel
Currently this panel does not affect the result of the query for rental cars.
Preferences Panel - Hotel Preferences Panel
Currently this panel does not affect the result of the query for hotels.
Trip Taken Window - General Panel
This panel contains the general information about a trip that has already been taken. It cannot be changed, but is retained for reference.
Trip Taken Window - Airline Panel
This panel shows the specific flight information for a trip that has already been taken. It cannot be changed, but is retained for reference.
Trip Taken Window - Car Rental Panel
This panel shows the specific car rental information for a trip that has already been taken. It cannot be changed, but is retained for reference.
Trip Taken Window - Hotel Panel
This panel shows the specific hotel information for a trip that has already been taken. It cannot be changed, but is retained for reference.
The user selects which credit cards to pay for the selected travel services.
List of Confirmation Numbers
Once a reservation is made, a list of confirmation numbers for each travel service is displayed. The current trip is closed and the user is returned to the list of trips.