Try writting a small class to list the properties
of your classes (using the JavaBeans API - PropertyDescriptor, etc.).
Then, you can figure out what could be wrong.

Digester doesn't has limitations of this kind. I have the same
hierarchy and it works fine.

Fernando

----- Original Message -----
From: "Stacy Weng" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 5:12 PM
Subject: Re: Digester and inheritance


Wouldn't that be a "has-a" relationship?  If I do that, than I would end up
with this (since originally I have many child classes extending from
Component):

public class Component {
    public String name = null;
    public String getName() {
        return this.name;
    }
    public void setName(String name) {
        this.name=name;
    }
}

public class HelperClass1 {
    private final Component C;
    public String getName() {
        return c.getName;
    }
    public void setName(String name) {
        c.setName(name);
    }
}

public class HelperClass2 {
    private final Component C;
    public String getName() {
        return c.getName;
    }
    public void setName(String name) {
        c.setName(name);
    }
}

public class HelperClass2 {
    private final Component C;
    public String getName() {
        return c.getName;
    }
    public void setName(String name) {
        c.setName(name);
    }
}

The reason I'm extending from Component is because these helper classes
"is - a" Component.  They only have slight variations.  Does digester not
handle "is-a" relationships?

--Stacy
ps - Thanks again for taking the time to respond.  I can't stress how much I
appreciate it.



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to