RE: DB Connection Best practice

2004-12-26 Thread uma.k
Hi Amit, Yes,the mail reached me. Thanks Uma -Original Message- From: Amit Gupta [mailto:[EMAIL PROTECTED] Sent: Monday, December 27, 2004 9:49 AM To: Struts Users Mailing List Subject: RE: DB Connection Best practice I sent you message in separate mail on Friday. Have you got that

RE: DB Connection Best practice

2004-12-26 Thread Amit Gupta
AM To: Struts Users Mailing List Subject: RE: DB Connection Best practice Hi Amit, Would appreciate if u can forward the same msg again to me too. As i am also a struggler i also might need it Thanks, Manisha Amit Gupta <[EMAIL PROTECTED]> wrote: Hi Uma, I use DBCP for this. Refer my m

RE: DB Connection Best practice

2004-12-25 Thread Manisha Sathe
g same to you on your personal ID. -Original Message- From: uma.k [mailto:[EMAIL PROTECTED] Sent: Friday, December 24, 2004 10:20 AM To: 'Struts Users Mailing List' Subject: DB Connection Best practice Hi, I wanted to insert a record into the database or update a record in the d

RE: DB Connection Best practice

2004-12-23 Thread Amit Gupta
7; Subject: DB Connection Best practice 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

RE: DB Connection Best practice

2004-12-23 Thread uma.k
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)

Re: DB Connection Best practice

2004-12-23 Thread Sunny
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 th

DB Connection Best practice

2004-12-23 Thread uma.k
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