Thanks Sunny, I will do that. Uma
-----Original Message----- From: Sunny [mailto:[EMAIL PROTECTED] Sent: Friday, December 24, 2004 10:27 AM To: Struts Users Mailing List Subject: Re: DB Connection Best practice Better practice would be delegating to a "handler" (application layer) class and let it return data in form of some bean and use that in action. In this way you'll be isolating Controller from Business model. uma.k wrote: >Hi, >I wanted to insert a record into the database or >update a record in the database or >get a record from the database. > >Where do I make my database connection? Is it in the Action class? Can I >make a single java class handle all of that for me? > >If the above are wrong. Please let me know which is the best practice to do >this. > >Thanks >Uma > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]