Return-Path: Delivered-To: apmail-jakarta-struts-user-archive@apache.org Received: (qmail 71274 invoked from network); 1 Jan 2003 21:25:17 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 1 Jan 2003 21:25:17 -0000 Received: (qmail 6424 invoked by uid 97); 1 Jan 2003 21:26:21 -0000 Delivered-To: qmlist-jakarta-archive-struts-user@jakarta.apache.org Received: (qmail 6404 invoked by uid 97); 1 Jan 2003 21:26:20 -0000 Mailing-List: contact struts-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list struts-user@jakarta.apache.org Received: (qmail 6391 invoked by uid 98); 1 Jan 2003 21:26:20 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <00f001c2b1dc$601b5280$0200a8c0@Haiying> From: "Liu Jian" To: "Struts Users Mailing List" References: <00fc01c2b1d6$56d0aff0$6401a8c0@asgard> Subject: "conPool" --> "ConPool" / Re: datasource problem Date: Wed, 1 Jan 2003 16:25:57 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Will the data-source key case-sensitive? "conPool" --> "ConPool" Try dsSrc = ( DataSource ) context.getAttribute( "conPool" ); Good luck ! ----- Original Message ----- From: "Steven Dahlin" To: Sent: Wednesday, January 01, 2003 3:42 PM Subject: datasource problem When I try to get a datasource which has been defined in the struts-config.xml no matter what I do the datasource returns back null. My struts-config.xml for data-sources is: In the section of code used for initialization of the datasource there is the following: ServletContext context = actSrv.getServletContext(); dsSrc = ( DataSource ) context.getAttribute( "ConPool" ); The context is captured but the datasource remains null. Any suggestions? Thanks, Steve -- To unsubscribe, e-mail: For additional commands, e-mail: