I have the similar case with Beans not implemented "Serializable". I will use
PropertyUtils.copyProperties(destBean, srcBean) to propogate the properties.

Nick Pellow wrote:

> Hello,
>
> Robert Leland wrote:
> >
> > As far as struts 1.0, the Form bean is used only to redisplay
> > information to the jsp page. Typically the EJB might be loaded/unloaded in the
> > action class. If you search www.mail-archives.co,m Craig talked more about this in 
>detail.
>
> My understanding is that with struts you should keep your EJBs entirely
> independant of
> anything to do with struts or servlets. You can and should however have
> a standard naming
> convention for the getters and setters across the EJB, the ActionForm
> and the html form elements.
> this allows you to call PropertyUtils.copyProperties(java.lang.Object
> dest, java.lang.Object orig)
> when you are ready to store the details entered by the user.
>
> Please let me know if this does not sound right.
>
> Cheers,
> Nick
>
> > In future version of struts this may be enhanced.
> >
> > -Rob
> >
> > > Cameron Ingram0 wrote:
> > >
> > > I am in the process of convincing my company to go with MVC and Struts. As with 
>any thing new,
> > > people are sometimes resistant
> > > to change. One of the opposition questions I am getting is, how will this work 
>with EJB(problem is
> > > I don't know too much about EJB currently).  Do the EJB's references just go in 
>the Form and
> > > Action Bean and every thing else behaves the same? Are there any obvious points 
>that I can bring
> > > up on the subject?
> > > Any help on this subject would be much appreciated!
> > >
> > > Thanks, Cameron Ingram

Reply via email to