Re: "conPool" --> "ConPool" / Re: datasource problem

2003-01-01 Thread Steven Dahlin
That was a misttype on my part.  In the code both have "conPool".

- Original Message -
From: "Liu Jian" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, January 01, 2003 2:25 PM
Subject: "conPool" --> "ConPool" / Re: datasource problem


> Will the data-source key case-sensitive? "conPool" --> "ConPool"
>
> Try
>
> dsSrc= ( DataSource ) context.getAttribute( "conPool" );
>
> Good luck !
>
>
>
> - Original Message -
> From: "Steven Dahlin" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> 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:
>
> 
>
> 
>
> value = "false"/>
> value = "database source"/>
> value = "oracle.jdbc.driver.OracleDriver"/>
> value = "theuser"/>
> value = "thepassword"/>
> value =
> "jdbc:oracle:thin:@192.192.192.192:1675:inst"/>
>  
>
>   
>
> 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:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>



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




"conPool" --> "ConPool" / Re: datasource problem

2003-01-01 Thread Liu Jian
Will the data-source key case-sensitive? "conPool" --> "ConPool"

Try

dsSrc= ( DataSource ) context.getAttribute( "conPool" );

Good luck !



- Original Message -
From: "Steven Dahlin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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: