commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From José Antonio Pérez Testa <>
Subject Re: [Digester]can't get the parse result
Date Tue, 07 Sep 2004 07:13:23 GMT
Hi Gao,
You have to add an initial object to the Digester stack with
digester.push (miObject);
and add a new rule
digester.addSetNext("CMS/CMD/GWPARAMS", "miObjectMethodName");
in order to Digester to call <miObjectMethodName> with the Device in top
of the stack, before pop the Device object and leave the stack empty (
and the return null).

Gao Di wrote:

>my xml is:
><GWPARAMS name='shanghai'>
><PR name='OSVER' value='V001'/>
><PR name='HWVER' value='V002'/>
><PR name='STATUS' value='ON'/>
><PR name='CONNECTTIME' value='2004-08-30 16:50'/>
><PR name='UPTIME' value='2004-08-30 16:50'/>
>and i want to put the the value into the javabean,i
>device = (Device)digester.parse(os.getReader());
>i find the parse can find the set method and put the
>value in it,but when i use get method to get the
>result,i only get null,it seems the value can't be
>persisted,that's why?	
>Do You Yahoo!?
>To unsubscribe, e-mail:
>For additional commands, e-mail:
Este correo electrnico y, en su caso, cualquier fichero anexo al mismo, contiene informacin
de carcter confidencial exclusivamente dirigida a su destinatario o destinatarios. Queda
prohibida su divulgacin, copia o distribucin a terceros sin la previa autorizacin escrita
de Indra. En el caso de haber recibido este correo electrnico por error, se ruega notificar
inmediatamente esta circunstancia mediante reenvo a la direccin electrnica del remitente.

The information in this e-mail and in any attachments is confidential and solely for the attention
and use of the named addressee(s). You are hereby notified that any dissemination, distribution
or copy of this communication is prohibited without the prior written consent of Indra. If
you have received this communication in error, please, notify the sender by reply e-mail

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

View raw message