Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with JSTL sql library in JSP  RSS feed

Purushoth Thambu
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am using Tomcat 5.0.27,

I am trying to use the JSTL sql library in the JSP file. I registered JDBC with JNDI. The problem is with JSTL sql library. When I try to use the JDBC/JNDI in servlet I don't face any problem.

I copied the jstl.jar and standard.jar to common\lib folder and well as my applications WEB-INF\lib folder.

Below is the test jsp

<%@ taglib uri="" prefix="c" %>
<%@ taglib uri="" prefix="sql" %>

<sql:query var="rs" dataSource="jdbc/BramhaDB">
select ename from emp

<title>DB Test</title>

<c:forEach var="row" items="${rs.rows}">
Foo <c ut value="${row.empno}" /> <br/>



Foo ${row.empno}

I guess there is some problem with some setup.. please let me know how to make the sql tag library work.. core library is working fine..
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!