Thanks Antonio

I will try it.

Talos

----- Original Message ----- 
From: "Antonio Petrelli" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <user@struts.apache.org>
Sent: Thursday, March 27, 2008 4:23 PM
Subject: Re: How to use <data-source> in your own java file?


2008/3/27, Chen Chunwei <[EMAIL PROTECTED]>:
>  I've already configured a <data-source> in struts-config.xml through some 
> reference. But I don't know how to use it in my own business logic.

Use the "getDataSource" method in your action. Anyway, notice that it
is discouraged to use a data source this way. It is better to use JNDI
to take it from the container.

Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to