Brett,
 
I haven't tested the initParameter abilities of the JDBC tags. Out of curiosity, 
however, what happens if you don't use these parameters, but instead use the 
APPLICATION taglib's initparameter tag in the body of your SQL tags. If that works, 
I'm guessing that there may be a problem with the JDBC taglib. If it doesn't work, did 
you remember to stop and restart Tomcat after you modified your web.xml?
 
Regards
Garrel Renick
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 

-----Original Message-----
From: Procek, Brett [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 20, 2001 1:21 PM
To: [EMAIL PROTECTED]
Subject: RE: 'No suitable driver' exception


Actually, that's just a typo that I made when sending this email.  Sorry.  Assume that 
I have all the typing correct for this one.  
thanks!
 
brett

-----Original Message----- 
From: Morgan Delagrange 
Sent: Thu 4/19/2001 6:01 PM 
To: [EMAIL PROTECTED] 
Cc: 
Subject: Re: 'No suitable driver' exception



There's a typo in your sample JSP.  Is this really what your source looks
like?

  <sql:driver initParameer="dbDriver"/>

It should be "initParameter", but your servlet engine should also be
giving you some sort of warning.

On Thu, 19 Apr 2001, Procek, Brett wrote:

> Hello,
> Has anyone gotten the 'initParameter' functionality working using the
> JDBC custom library tags.
> I set up the appropriate Context variables in my web.xml file, but I
> keep getting the same exception = 'No suitable driver'.  I can
> successfully connect to my Oracle database if I put the URL/driver
> information directly in the JSP page.  It anyone can help, this would be
> much appreciated.
>
> Thanks,
> Brett
>
> Here are the relavant code snippets...
>
>
> Tagged Database connection attempt in my.JSP File ------
> <sql:connection id="conn1">
>   <sql:url initParameter="dbURL"/>
>   <sql:driver initParameer="dbDriver"/>
> </sql:connection>
> -----------------------------------------
> Web.XML file ----------------------------
>  <context-param>
>       <param-name>dbURL</param-name>
> 
> <param-value>jdbc:oracle:thin:[EMAIL PROTECTED]:1521:NM
> S</param-value>
>     </context-param>
>     <context-param>
>       <param-name>dbDriver</param-name>
>       <param-value>oracle.jdbc.driver.OracleDriver</param-value>
>     </context-param>
> ------------------------------------------
>



Reply via email to