RE: All The Bean Properties Are Null in the Business Tier!!! (Used BeanUtils to Convert DynaValidatorForm)

2004-01-09 Thread Robert Taylor
; ObjectNotFoundException { > > > > int identity = 0; > > > > md.createThread(this.getReceiver(), > > this.getSender(), > > this.getThreadTopic(), > > this.getThreadBody(), > >

RE: All The Bean Properties Are Null in the Business Tier!!! (Used BeanUtils to Convert DynaValidatorForm)

2004-01-09 Thread Caroline Jen
reationDate(), > this.getThreadViewCount(), > this.getThreadReplyCount()); > > // get identity > > return identity; > > } > > > } > > ThreadHandler th = new ThreadHandler(); > BeanUtils.copyP

RE: All The Bean Properties Are Null in the Business Tier!!! (Used BeanUtils to Convert DynaValidatorForm)

2004-01-08 Thread Caroline Jen
orum discussion thread. > > I could be wrong though. > > robert > > > > -Original Message- > > From: Yee, Richard K,,DMDCWEST > [mailto:[EMAIL PROTECTED] > > Sent: Thursday, January 08, 2004 12:00 PM > > To: 'Struts Users Mailing List'

RE: All The Bean Properties Are Null in the Business Tier!!! (Used BeanUtils to Convert DynaValidatorForm)

2004-01-08 Thread Robert Taylor
--Original Message- > From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 08, 2004 12:00 PM > To: 'Struts Users Mailing List' > Subject: RE: All The Bean Properties Are Null in the Business Tier!!! > (Used BeanUtils to Convert DynaValidatorFo

RE: All The Bean Properties Are Null in the Business Tier!!! (Used BeanUtils to Convert DynaValidatorForm)

2004-01-08 Thread Robert Taylor
t threadViewCount = getThreadViewCount(); > > >int threadReplyCount = getThreadReplyCount(); > > > > > >. > > >..... > > > } > > > > > > ...unless you do something like the following in > > ThreadHandler.insertThread

RE: All The Bean Properties Are Null in the Business Tier!!! (Used BeanUtils to Convert DynaValidatorForm)

2004-01-08 Thread Caroline Jen
blic int insertThread(ThreadBean bean) throws > SomeException { > > this.receiver = bean.getReceiver(); > this.sender = bean.getSender(); > > > // insert code here > > > > } > > which from a design perspective, I'm not sure why >

RE: All The Bean Properties Are Null in the Business Tier!!! (Used BeanUtils to Convert DynaValidatorForm)

2004-01-08 Thread Robert Taylor
> From: Caroline Jen [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 07, 2004 10:27 PM > To: Struts Users Mailing List > Subject: RE: All The Bean Properties Are Null in the Business Tier!!! > (Used BeanUtils to Convert DynaValidatorForm) > > > I have narrowed down t

RE: All The Bean Properties Are Null in the Business Tier!!! (Used BeanUtils to Convert DynaValidatorForm)

2004-01-07 Thread Caroline Jen
I have narrowed down the problem. Something went wrong in my business tier class (ThreadHandler.java). All the properties in the JavaBean are populated properly (I have checked). The way I coded in the ThreadHandler class failed to retrieve the value of all the properties in the JavaBean (Thread

RE: All The Bean Properties Are Null in the Business Tier!!! (Used BeanUtils to Convert DynaValidatorForm)

2004-01-07 Thread Robert Taylor
/beanutils /BeanUtils.html#populate(java.lang.Object, java.util.Map) robert > -Original Message- > From: Caroline Jen [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 07, 2004 2:13 PM > To: Struts Users Mailing List > Subject: RE: All The Bean Properties Are Null in th

RE: All The Bean Properties Are Null in the Business Tier!!! (Used BeanUtils to Convert DynaValidatorForm)

2004-01-07 Thread Caroline Jen
What does BeanUtils.populate(); do? I used BeanUtils.copyProperties(); Does it make any difference? --- Robert Taylor <[EMAIL PROTECTED]> wrote: > Have you checked to make sure that the fields you > expect > actually exist in the form before calling > BeanUtils.populate()? > > If so, have you ch

RE: All The Bean Properties Are Null in the Business Tier!!! (Used BeanUtils to Convert DynaValidatorForm)

2004-01-07 Thread Robert Taylor
Have you checked to make sure that the fields you expect actually exist in the form before calling BeanUtils.populate()? If so, have you checked to see if the data was copied properly just after BeanUtils.populate()? BeanUtils.populate() uses reflection to copy properties. Are you usingproper Ja