commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Blom <>
Subject [digester] Setting same object within parent
Date Tue, 09 Nov 2004 06:01:14 GMT
Hi all,
How can i do a recursive set where one object contains
many of the same object that can go any number of
levels down?
class Person{
  String name;
  List personList = new ArrayList();

  public void addPerson(Person p){
  <person name="bob">
    <person name="joe"/>
    <person name="sue">
      <person name="billy">

Thanks so much,

Do you Yahoo!? 
Check out the new Yahoo! Front Page. 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message