Hi Mathieu Grimault,
can you send me ur tomcat's server.xml file, the problem is in tomcat
configuration,
Regards,
viru
- Original Message -
From: Mathieu Grimault [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 5:01 PM
Subject:
Woohoo!!!
But you'll have to forgive my ignorance, but any chance of a more ostensive
answer, like an example for example..
So something like
DataSource ds = getDatasource(mykey);
(MyBEan).doSomething(ds, and other args);
Is this along the right lines?
Many thanks
mark
On 17-12-2002
Thanks keith that looks like a really good elegant way of doing this, but as
i conceded before I particularly stupid, and i don't get it. To be honest
I've always had the db pooling stuff taken care for me before which was only
of the attractions of using struts..
Is there no means to referencing
I know that , i've read that .. But I what i really want to know is this
Without importing any servlet stuff
Some_means_of_getting_to_details_in_config_xml.getDatasource(mykey);
Many thanks mark
On 17-12-2002 15:17, Edgar P. Dollin [EMAIL PROTECTED] wrote:
Another option is to aquire the
:13 AM
To: Struts Users Mailing List
Subject: Re: dataSources outside of actionservlet
I know that , i've read that .. But I what i really want to know is this
Without importing any servlet stuff
Some_means_of_getting_to_details_in_config_xml.getDatasource(mykey);
Many thanks mark
On 17-12-2002
();
Edgar
-Original Message-
From: Mark [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 10:13 AM
To: Struts Users Mailing List
Subject: Re: dataSources outside of actionservlet
I know that , i've read that .. But I what i really want to know is this
Without importing any
:[EMAIL PROTECTED]]
Sent: Tuesday, December 17, 2002 10:13 AM
To: Struts Users Mailing List
Subject: Re: dataSources outside of actionservlet
I know that , i've read that .. But I what i really want to know is this
Without importing any servlet stuff
On Tue, 17 Dec 2002 17:45, Mark [EMAIL PROTECTED] wrote:
Thanks edgar..
For those folks who are starting out or don't read binary
Context and InitialContext are part of the javax.naming package
So you'll need to
import javax.naming.Context;
import javax.naming.InitialContext;
The
Thanks the last answer does the job, thanks jaaron..
The JNDI solution seemed a bit crack induced and a bit too cyptic for my low
iq.. :)
Cheers again mark
On 17-12-2002 19:52, J Aaron Farr [EMAIL PROTECTED] wrote:
On Tue, 17 Dec 2002 17:45, Mark [EMAIL PROTECTED] wrote:
Thanks edgar..
See the user guide for config info
http://jakarta.apache.org/struts/userGuide/building_controller.html#other_config
Also, look at the struts-config.dtd for available elements and attributes.
David
From: Dinesh [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To:
more attention then.
HTH!
Eddie
- Original Message -
From: Ramin, Arash [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, April 29, 2002 11:39 AM
Subject: RE: datasources
The problem with this is that the next time we run a build the latest
struts-config.xml
On Tue, 30 Apr 2002, Eddie Bush wrote:
Date: Tue, 30 Apr 2002 12:08:24 -0500
From: Eddie Bush [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: datasources
Ok, checkout, modify, and check back
Tomcat does adopt that datasource - then that would be the most ideal
solution yet.
Thanks so much!
Eddie
- Original Message -
From: Craig R. McClanahan [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, April 30, 2002 12:17 PM
Subject: Re: datasources
On Tue, 30 Apr 2002, Eddie Bush wrote:
Date: Tue, 30 Apr 2002 12:39:41 -0500
From: Eddie Bush [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: datasources
Thanks Craig!!
I had previously shied away
]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, April 30, 2002 1:22 PM
Subject: Re: datasources
On Tue, 30 Apr 2002, Eddie Bush wrote:
Date: Tue, 30 Apr 2002 12:39:41 -0500
From: Eddie Bush [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users
When you configured the datasource you gave it a name. Use that as a key to
lookup the datasoruce using findDataSource( String name )
Taylor
-Original Message-
From: Rubens Gama [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 11, 2002 2:38 PM
To: Struts-User
Subject: datasources
i
: Taylor Cowan [mailto:[EMAIL PROTECTED]]
Enviada em: sexta-feira, 11 de janeiro de 2002 16:48
Para: Struts Users Mailing List
Assunto: RE: datasources
When you configured the datasource you gave it a name. Use that as a key to
lookup the datasoruce using findDataSource( String name )
Taylor
value=bar/
/data-source
/data-sources
where is the tag name ??
Thank you
-Mensagem original-
De: Taylor Cowan [mailto:[EMAIL PROTECTED]]
Enviada em: sexta-feira, 11 de janeiro de 2002 16:48
Para: Struts Users Mailing List
Assunto: RE: datasources
When you configured
]]
Enviada em: sexta-feira, 11 de janeiro de 2002 18:04
Para: 'Struts Users Mailing List'
Assunto: RE: datasources
Rubens,
You can use key=dataSourceName attribute in data-source tag.
To retrieve: ActionServlet.findDataSource( dataSourceName)
Mark.
-Original Message-
From: Rubens Gama
I usually get that problem when there is a problem with the actual xml in
struts-config (eg, I left out a closing tag, etc).
Is this exactly like your struts-config xml looks? If so, you have a problem
at the end
- there are 2 closing /data-sources tags - one is actually
data-sources--
If that
It looks like one option is to modify the dtd and declare a different entity
that holds all the datasources - is there a less intrusive way/ is this
recommended/strongly discouraged?
thanks
pratima
-Original Message-
From: Gogineni, Pratima
Sent: Friday, March 09, 2001
21 matches
Mail list logo