Thanks for taking the time to recreate and solve the problem. I won't get a chance to implement it until I go to work, but I'm positive that will solve my problem.
Thanks a bunch,
Matt
Matt Goodwin [EMAIL PROTECTED] (515)708-0114 "Transcending the Ordinary"
Wendy Smoak wrote:
From: "Matt Goodwin" <[EMAIL PROTECTED]>
2 others are not populated (agentInfo - an AgentInfo object and
agentEarning - an AgentEarning object).
Tentatively, because I don't have a lot of Digester experience... I see you create and populate the AgentInfo and AgentEarning objects, but I don't see you adding them to the AgentStatement object.
I was able to recreate the problem, and solve it by adding these lines beneath their respective lists of addBeanPropertySetters:
digester.addSetNext( "AgentStatementVO/AgentInfoVO", "setAgentInfo", "AgentInfo" );
digester.addSetNext( "AgentStatementVO/AgentEarningsVO", "setAgentEarning", "AgentEarning" );
(Note that I used the default package, so the third argument needs the correct package name added to the class name.)
Now printing the AgentStatement object shows: [EMAIL PROTECTED] statementDate=2004/10/08 [EMAIL PROTECTED] lastName=xxxx] agentStatementDetails=[] [EMAIL PROTECTED] positiveEarnings=0.0 netEarnings=0.0]]
HTH, if you haven't solved it yourself by now. :)
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]