commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gao Di <jaoy...@yahoo.com.cn>
Subject [Digester]can't get the parse result
Date Tue, 07 Sep 2004 06:25:06 GMT
my xml is:
<CMS>
<CMD>
<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'/>
</GWPARAMS>
</CMD>
</CMS>
and i want to put the the value into the javabean,i
use;
digester.addObjectCreate("CMS/CMD/GWPARAMS",
"com.adt.service.transfer.model.Device");
digester.addSetProperties("CMS/CMD/GWPARAMS");	
digester.addSetProperty("CMS/CMD/GWPARAMS/PR","name","value");
	
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!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message