Hi Diego,
 
I guess, the problem is, that you haven't specified the param types
of your setData method. So right now the algorithm looks after
a setData method without any parameters, which is why your
implementation is never called...
 
Try it this way:
digester.addCallMethod("class/property/meta", "setData", 0, new 
String[]{"java.lang.String"});

Good luck!

Bye,

CK


        -----Urspr�ngliche Nachricht----- 
        Von: Diego [mailto:[EMAIL PROTECTED] 
        Gesendet: Mi 10.03.2004 17:09 
        An: Jakarta Commons Users List 
        Cc: 
        Betreff: Re: AW: Problems with digester
        
        

        Hi Carsten! Thanks a lot for your answer. Unfortunately, I had no luck with it
        :(
        
        I haven't found a method called "addCallMethodRule", but I suppose that you 
were
        referring to "addCallMethod" instead. I've tried this:
        
        digester.addCallMethod("class/property/meta", "setData", 0);
        
        But "setData" method is never called. Any other ideas, people?
        
        thanks again
        
        Mensaje citado por Carsten Kaiser:
        
        > Hello Diego,
        > 
        > you can use a call method rule instead e.g. like this:
        > digester.addCallMethodRule("class/property/meta", "setData", 0,
        > "java.lang.String");
        > Paramcount = 0 will call the setData method on your Meta-Object using the
        > body of your meta tag...
        > 
        > Hope this works... ;-)
        > 
        > Bye,
        > CK
        >
        >       -----Urspr�ngliche Nachricht-----
        >       Von: Diego [mailto:[EMAIL PROTECTED]
        >       Gesendet: Mi 10.03.2004 13:32
        >       An: [EMAIL PROTECTED]
        >       Cc:
        >       Betreff: Problems with digester
        >      
        >      
        >
        >       Hi everyone!
        >      
        >       I'm using commons digester to parse a xml file like this:
        >       ...
        
        ----------------------------------------------------------------
        This message was sent using IMP, the Internet Messaging Program.
        
        
        ---------------------------------------------------------------------
        To unsubscribe, e-mail: [EMAIL PROTECTED]
        For additional commands, e-mail: [EMAIL PROTECTED]
        
        


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

Reply via email to