Subject: Re: When is it bad form to use form beans?
From: Vic Cekvenich <[EMAIL PROTECTED]>
 ===
Not clear to me... so hth:

Mike Duffy wrote:

> When is it bad form to use form beans?
> 


I have about 1:1 relationship pages/formsbeans/actions.


> For example, if you are processing a web page with several form
> fields and the only goal of the process is to get the information
> from the form fields into the data base, is it ok to send a form bean
> from the Action servlet directly to a class in the data access layer?
> 


A formbean would ask the dao to save for example.


> You could simply do "formBean.getFoo()" into a prepared statement.
> 


That would not be good for each field to hit the db. I do a 
form.populate() that I call from action. Or form.save().


> __________________________________________________
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to