The method of how data is retrieved from the database should already
be setup for you - with Managers, DAOs, etc.  Showing us pseudo code
for what you're trying to do with make it much easier to help.

Matt

On 3/5/07, Luke Shannon <[EMAIL PROTECTED]> wrote:
Thanks Mat, formBackingObject() seems to be the way to go. Do you see
any problem using the Jakarta-Commons DB connection pool to obtain the
data from the DB? Or is there a better approach to this?

On 3/4/07, Matt Raible <[EMAIL PROTECTED]> wrote:
> You could do this in your DAO where you originally fetch everything.  Also,
> there's logic in your FormController's formBackingObject() that gets your
> object from the database before populating it from request parameters. This
> means you don't have to store these fields in hidden fields.  If this
> doesn't work, you might try storing the non-editable fields in hidden fields
> or read-only fields.
>
> Matt
>
>
> On 3/4/07, Luke Shannon <[EMAIL PROTECTED]> wrote:
> >
> > Hi;
> >
> > This may be a more of a Spring question, although I am hoping there is
> > something within the Appfuse tools to assist with this.
> >
> > I have a Pojo I have created in my application and I have used Appgen
> > to create everything I need for the CRUD operations.
> >
> > What I would like to do now is modify the application so specific
> > fields in the Pojo are set using data from a DB and not from user
> > input from the web tier.
> >
> > Working within the Struts framework (Appfuse 1.9.4) where is the best
> > place to implement such a change? Is there a best practise for
> > something like this?
> >
> > Thanks,
> >
> > Luke
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> http://raibledesigns.com

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




--
http://raibledesigns.com

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

Reply via email to