The source code of PersonBean.java : package beans; // This is a simple bean class to demonstrate servlet/JSP bean handling public class PersonBean { private String name; private int age; private String address; public PersonBean() { name= "A N Other"; age = 21; address = "Cottrell"; } public void setName(String name) { this.name = name; } public String getName() { return name; } public void setAge(int age) { this.age = age; } public int getAge() { return age; } public void setAddress(String address) { this.address = address; } public String getAddress() { return address; } }