struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Barrows" <jbarr...@sssc.com>
Subject RE: Pre-populating a form from a database
Date Thu, 02 Dec 2004 16:58:59 GMT
The form bean is a not a data access object!!!!!!!
Get the data in the action class, populate the form bean from that.  FormBeans are for display
only.

> -----Original Message-----
> From: Donie Kelly [mailto:donie.kelly@tecnomen.ie]
> Sent: Thursday, December 02, 2004 9:43 AM
> To: Struts Users Mailing List
> Subject: Pre-populating a form from a database
> 
> 
> Hi all
> 
>  
> 
> I've been going through the tutorials at
> http://www.coreservlets.com/Apache-Struts-Tutorial/index.html
> <http://www.coreservlets.com/Apache-Struts-Tutorial/index.html
> >  which shows
> how to pre-populate forms.
> 
>  
> 
> However, as I'm new to this, is there a "proper" way to 
> access the database
> through the form bean? Sould I put code in the form 
> constructor class to
> initialise the data? Or does struts have a better way?
> 
>  
> 
> Thanks
> 
> donie
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message