This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Problem with JSTL sql library in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Problem with JSTL sql library in JSP" Watch "Problem with JSTL sql library in JSP" New topic

Problem with JSTL sql library in JSP

Purushoth Thambu
Ranch Hand

Joined: May 24, 2003
Posts: 425

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..
I agree. Here's the link:
subject: Problem with JSTL sql library in JSP
jQuery in Action, 3rd edition