Re: Best method for Databae Access in Struts/Tomcat combo?

2003-06-17 Thread Craig R. McClanahan
On Mon, 16 Jun 2003, David Graham wrote: Date: Mon, 16 Jun 2003 19:39:12 -0600 From: David Graham [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Best method for Databae Access in Struts/Tomcat combo? David, That clears up

Re: Best method for Databae Access in Struts/Tomcat combo?

2003-06-17 Thread David Graham
David, That clears up quite a bit for me. So if I have a Resource setup in my container (Tomcat 4.1.24) I can use that resource in any class using JNDI and don't have to worry about specifying it inside my struts-configuration.xml file. Am I understanding you correct. That's exactly

Best method for Databae Access in Struts/Tomcat combo?

2003-06-16 Thread Sloan Bowman
I have been reading all over the place and can't seem to find a simple answer to my question. In struts using MVC development what is the best method to connect to a database. In struts 1.1rc1 you can specify DataSources but to my understanding you can only access this datasource from within

Re: Best method for Databae Access in Struts/Tomcat combo?

2003-06-16 Thread David Graham
Struts stores DataSources defined in struts-config.xml in the ServletContext so any class can access them. A more common approach is to define your DataSource in JNDI and have your business objects look it up from there. Both ways allow for MVC and the Struts configuration is provided as a

Re: Best method for Databae Access in Struts/Tomcat combo?

2003-06-16 Thread Sloan Bowman
David, That clears up quite a bit for me. So if I have a Resource setup in my container (Tomcat 4.1.24) I can use that resource in any class using JNDI and don't have to worry about specifying it inside my struts-configuration.xml file. Am I understanding you correct. Thanks, Sloan Struts

Re: Best method for Databae Access in Struts/Tomcat combo?

2003-06-16 Thread David Graham
David, That clears up quite a bit for me. So if I have a Resource setup in my container (Tomcat 4.1.24) I can use that resource in any class using JNDI and don't have to worry about specifying it inside my struts-configuration.xml file. Am I understanding you correct. That's exactly right.

Re: Best method for Databae Access in Struts/Tomcat combo?

2003-06-16 Thread Sloan Bowman
I appreciate your help very much. You were extremely helpful. --Sloan David, That clears up quite a bit for me. So if I have a Resource setup in my container (Tomcat 4.1.24) I can use that resource in any class using JNDI and don't have to worry about specifying it inside my