Prentice Hall and Sun Microsystems. Personal use only; do not redistribute.
374
Chapter 15 Integrating Servlets and JSP
Listing 15.7 FrequentFlyerInfo.java 
package coreservlets;
/** Simple class describing an airline and associated
 *  frequent flyer number, used from the TravelData class
 *  (where an array of FrequentFlyerInfo is associated with
 *  each customer).
 */
public class FrequentFlyerInfo {
  private String airlineName, frequentFlyerNumber;
  public FrequentFlyerInfo(String airlineName,
                           String frequentFlyerNumber) {
    this.airlineName = airlineName;
    this.frequentFlyerNumber = frequentFlyerNumber;
  }
  public String getAirlineName() {
    return(airlineName);
  }
  public String getFrequentFlyerNumber() {
    return(frequentFlyerNumber);
  }
}
Listing 15.8 RentalCarInfo.java 
package coreservlets;
/** Simple class describing a car company and associated
 *  frequent renter number, used from the TravelData class
 *  (where an array of RentalCarInfo is associated with
 *  each customer).
 */
public class RentalCarInfo {
  private String rentalCarCompany, rentalCarNumber;
  public RentalCarInfo(String rentalCarCompany,
                       String rentalCarNumber) {
    this.rentalCarCompany = rentalCarCompany;
    this.rentalCarNumber = rentalCarNumber;
  }
  public String getRentalCarCompany() {
    return(rentalCarCompany);
  }
  public String getRentalCarNumber() {
    return(rentalCarNumber);
  }
}
Second edition of this book: www.coreservlets.com; Sequel: www.moreservlets.com.
Servlet and JSP training courses by book's author: courses.coreservlets.com.






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

jsp web hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Jsp Web Hosting Cheapest Web Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved