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
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
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
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
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
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.
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
7 matches
Mail list logo