× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Agree with those points entirely

----- Original Message ----- 
From: "Lim Hock-Chai" <Lim.Hock-Chai@xxxxxxxxxxxxxxx>
To: <java400-l@xxxxxxxxxxxx>
Sent: Monday, December 06, 2004 5:30 PM
Subject: FW: newbie - DynaActionForm, EJB and easystruts


> below is the main reason that he is against using it:
>
> <Clip from the lesson III>
> NOTE:I've decided now that I really hate DynaActionForms. So, although I
demonstrate their use here, I strongly discourage their use.
> The main reason I am not fond of them is because there are no compile-time
checks when using them. In other words, to manually set a DynaForm field you
do something like: yourDynaForm.set("myProperty", myValue );. Well this will
always compile, but what if "myProperty" really isn't the field name that
you have defined? You won't know until run time.(Creating a Constants class
for your form field names helps, but you could still run into the same
problem if the property in the actual form bean definition was changed, and
it wasn't changed in the corresponding Constants class). Bugs can easily
creep into code that are more difficult to track down using DynaForms. More
than likely you also usually end up having to build a regular form bean
which extends a DynaActionForm because you realize later on that you have to
over-ride the reset method or you may even need some custom validation in
the validate method. So now the only advantage you've gained with your
DynaForm is you didn!
>  't have to create set/get methods. But how difficult is that? Most IDEs
will do that for you anyway. So, save yourself the later headaches and just
use regular ActionForms.
> <Clip from the lesson III>
>
>
> >From you respond, seems like you did not find that to be a big problem.
> -----Original Message-----
> From: java400-l-bounces@xxxxxxxxxxxx
> [mailto:java400-l-bounces@xxxxxxxxxxxx]On Behalf Of Glenn Holmer
> Sent: Friday, December 03, 2004 10:43 AM
> To: Java Programming on and around the iSeries / AS400
> Subject: Re: newbie - DynaActionForm, EJB and easystruts
>
>
> Lim Hock-Chai wrote:
> > I went thru a lesson on this web site
http://www.reumann.net/struts/lesson3.do and the author is not recommending
using DynaActionForm.  Is anybody using this method?  If it does cause
problem as the author described, I will try to avoid this.
>
> I didn't do the lesson, why does he recommend against it? We use
> DynaActionForms all the time.  You only need to code your own
> ActionForm in unusual cases.
>
>
> --
> This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
> To post a message email: JAVA400-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/java400-l
> or email: JAVA400-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/java400-l.
>

This e-mail has been sent by a company of Bertram Group Ltd, whose registered 
office is 1 Broadland Business Park, Norwich, NR7 0WF. 
This message, and any attachments, are intended solely for the addressee and 
may contain privileged or confidential information.  If you are not the 
intended recipient, any disclosure, copying, distribution or any action taken 
or omitted to be taken in reliance on it, is prohibited and may be unlawful.  
If you believe that you have received this email in error, please contact the 
sender immediately. Opinions, conclusions and statements of intent in this 
e-mail are those of the sender and will not bind a Bertram Group Ltd company 
unless confirmed in writing by a director independently of this message. 
Although we have taken steps to ensure that this email and any attachments are 
free from any virus, we advise that in keeping with good computing practice the 
recipient should ensure they are actually virus free.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.