DataForm是要返回的对象实例所对应的类,该类的实现代码如下:
package data; public class DataForm implements java.io.Serializable{ private String name = "bill"; private int age = 20; public String getName() return name; } public void setName(String name) this.name = name; } public int getAge() return age; } public void setAge(int age) this.age = age; } }