GRAPHIC JAVAThe evolution of Java Server Pages

GRAPHIC JAVA
The evolution of Java Server Pages

David Geary

Listing 5. Item JavaBean.


package com.sunpress.beans;

public class Item implements java.io.Serializable {
   private String description;
	
   public Item() { } // JavaBean
	
   public void setDescription(String description) {
		this.description = description;
   }
   public String getDescription() {
		return description;
   }
}

About the Author

David Geary was the lead engineer for the Java Management API GUI toolkit, and is now an independent Java consultant. David is the author of Graphic Java—Mastering the JFC. He can be contacted at [email protected].