RE: Stupd question about Struts and EJB.

2001-02-28 Thread Robert Taylor
If the validate() method does the type checking then we must implement type conversion code and type checking code in every single form bean we write! On large systems, this is sometimes very unfun. Any thoughts? You could use a Visitor pattern for an application Validator. Each form would

Re: Stupd question about Struts and EJB.

2001-02-27 Thread Jim Richards
EJBs come in two flavours (as opposed to flavors), session beans and entity beans. Session beans represent business logic and rules, entity beans represent a row in the database. The model that you'd use is to have Actions do the basic processing of form elements into data beans (just regular

Re: Stupd question about Struts and EJB.

2001-02-27 Thread Robert Leland
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. In future version of struts this may be enhanced. -Rob

Re: Stupd question about Struts and EJB.

2001-02-27 Thread Nick Pellow
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

RE: Stupd question about Struts and EJB.

2001-02-27 Thread Deadman, Hal
To: [EMAIL PROTECTED] Subject: Re: Stupd question about Struts and EJB. 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.

Re: Stupd question about Struts and EJB.

2001-02-27 Thread Maya Muchnik
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

Re: Stupd question about Struts and EJB.

2001-02-27 Thread Nick Pellow
Bobs worth. cheers, Nick Thanks, Bob -Original Message- From: Nick Pellow [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 27, 2001 5:23 PM To: [EMAIL PROTECTED] Subject: Re: Stupd question about Struts and EJB. Hello, Robert Leland wrote: As far as struts 1.0

Re: Stupd question about Struts and EJB.

2001-02-27 Thread martin . cooper
At 11:17 AM 2/28/01 +1100, Nick Pellow wrote: I am very new to struts as is, but as I far as I can tell from reading the implementation of the above method, the ActionForm can only have String properties. Is this correct? If so, it would be nice if the ActionForm could support types other than

Re: Stupd question about Struts and EJB.

2001-02-27 Thread Nick Pellow
Martin, [EMAIL PROTECTED] wrote: At 11:17 AM 2/28/01 +1100, Nick Pellow wrote: I am very new to struts as is, but as I far as I can tell from reading the implementation of the above method, the ActionForm can only have String properties. Is this correct? If so, it would be nice if the