We would like to store some Java classes in servlet session object.
I would like to know if this is possible.
For example, I would to store a class say People as
defined below.
public class Customer implements Serializable {
private String Name;
private int age;
private String[] addresslines;
// get and set methods defined
}
Is is also possible to store another object that contains a vector
of another object.
For example, say I have another class say BadCustomers as
defined below..
public class BadCustomers implements Serializable {
private Vector list;
public addBadCust(Customer cust) {
list.addElement(cust);
}
}
Any information on these is much appreciated.
Thanks.
Regards,
Chee Keong
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html