tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Warner Onstine" <>
Subject jdbc taglib problem
Date Wed, 04 Apr 2001 00:07:57 GMT
Hi all,
I am having a problem using the jdbc taglib. After following the
docuemntation I am still receiving this error:

Root Cause:
 at org.apache.jsp.genre_jsp._jspService(
 at org.apache.jasper.runtime.HttpJspBase.service(

When trying to connect with my database using this .jsp

<%-- open a database query -->
<sql:connection id="conn1">
    <sql:userId>******</sql:userId> (note not actually stars!)
    <sql:password>******</sql:password> (note not actually stars!)

<%-- open a database query --%>
<sql:statement id="stmt1" conn="conn1">
    select * from tbl_moviegenre
    <%-- loop through the rows of the query
    <sql:resultSet id="rset">
            <td>Primary key :: <sql:getColumn position="1"/></td>
            <td>Genre :: <sql:getColumn position="2"/></td>
    </sql:resultSet> --%>
    <sql:execute ignoreErrors="true"/>

<sql:closeConnection conn="conn1"/>

Now this works fine in a servlet with the same url, user, password.  So I
know it isn't my setup. Any ideas? This has been driving me nuts for the
past 2 hours.

Thanks in advance!


View raw message