I don't know of any sample apps that do this.  Here's what I do:
Some Action is executed
it says PersonHelper.getAllPeople()
which calls PersonDao.findAllPeople()
which executes jdbc calls with SQL and returns a List of Person objects

PersonHelper can be a Session EJB or a normal JavaBean.

I think this is following best practices.

Hope this helps,
Dave


>From: "Randall, Christopher J,,DMDCWEST" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
>Subject: RE: Newbie question
>Date: Wed, 2 Oct 2002 15:01:05 -0400
>
>I was looking for something Struts-specific, ideally, a Struts application
>with a best-practices demonstration of how to access data from a database 
>in
>a Struts application.
>
>Thanks,
>Chris
>
> > -----Original Message-----
> > From:       David Graham [SMTP:[EMAIL PROTECTED]]
> > Sent:       Wednesday, October 02, 2002 12:01 PM
> > To: [EMAIL PROTECTED]
> > Subject:    Re: Newbie question
> >
> > 
>http://developer.java.sun.com/developer/restricted/patterns/DataAccessObje
> > ct.html
> >
> > That is just the design pattern you should follow, no code.
> >
> > Dave
> >
> >
> > >From: "Randall, Christopher J,,DMDCWEST" <[EMAIL PROTECTED]>
> > >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > >To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> > >Subject: Newbie question
> > >Date: Wed, 2 Oct 2002 14:51:18 -0400
> > >
> > >Total newbie question here: where is a good example of a 
>database-access
> > >model bean? I have been looking all day on the web site for good bean
> > >examples.
> > >
> > >Thanks,
> > >Chris
> > >
> > >--
> > >To unsubscribe, e-mail:
> > ><mailto:[EMAIL PROTECTED]>
> > >For additional commands, e-mail:
> > ><mailto:[EMAIL PROTECTED]>
> >
> >
> >
> >
> > _________________________________________________________________
> > Chat with friends online, try MSN Messenger: http://messenger.msn.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]>




_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


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

Reply via email to