> When is it bad form to use form beans?
> 
> 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?

Yes, I think it's OK.  If you work with you'r form bean like a usual ValueObject, then 
it's not
a problem that form bean is derived from ActionForm.

I mean it's OK unless you use any methods derived from ActionForm.  Otherwise you'r 
data acess layer would be bound with Struts
framework.


Maris

> You could simply do "formBean.getFoo()" into a prepared statement.
> 
> __________________________________________________
> 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