资料详情

JDBC与JSP研究

头像

理工论文

编号:11666
 

select hitCount from counters where page like '<%=request.getRequestURI()%>'

</sql:query>

<%-- process only the first row of the query --%>

<sql:resultSet id="rset2" loop="false">

<sql:getColumn position="1"/>

</sql:resultSet>

</sql:statement>

times. The page counter is implemented using the Jakarta Project's

DBTags tag library, calling JDBC indirectly.</P>

<%-- close a database connection --%>

<sql:closeConnection conn="conn1"/>

</BODY>

</HTML>