; ObjectNotFoundException {
> >
> > int identity = 0;
> >
> > md.createThread(this.getReceiver(),
> > this.getSender(),
> > this.getThreadTopic(),
> > this.getThreadBody(),
> >
reationDate(),
> this.getThreadViewCount(),
> this.getThreadReplyCount());
>
> // get identity
>
> return identity;
>
> }
>
>
> }
>
> ThreadHandler th = new ThreadHandler();
> BeanUtils.copyP
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'
--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
t threadViewCount = getThreadViewCount();
> > >int threadReplyCount = getThreadReplyCount();
> > >
> > >.
> > >.....
> > > }
> >
> >
> > ...unless you do something like the following in
> > ThreadHandler.insertThread
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
>
> 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
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
/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
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
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
11 matches
Mail list logo