tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Moazam Raja <>
Subject "Attribute select has no value" error
Date Sun, 08 Feb 2004 09:26:19 GMT
Hi all, I'm having a very frustrating problem which is probably very 
simple to solve.

I downloaded the jakarta-taglibs-standard-1.0.5 and have installed it 
(the standard.jar file) into my webapps WEB-INF/lib area. I'm using 
Tomcat 4.1.29.

I have a JSP page which is trying to connect to a JDBC mySQL database 
but I keep getting this error when I try to compile:

articles.jsp [19:7] Attribute select has no value
Errors compiling articles.

Here is my source code:

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

<sql:setDataSource dataSource="dataSource" 
driver="" url="jdbc:mysql://localhost/moazam" 
user="user" password="pass" />

<c:set var="browser" value="${header['User-Agent']}"/>
<c:out value="${browser}"/>

<sql:query var="articles" dataSource="${dataSource}"
select * from Articles>

<c:forEach var="row" items="${articles.row}">
    <td><c:out value="${articles.ID}" /></td>
    <td><c:out value="${articles.Author}" /></td>
    <td><c:out value="${articles.Title}" /></td>
    <td><c:out value="${articles.Topic}" /></td>


Now...the error refers to [19:7] and line 19 is:

select * from Articles

I know that my taglib is setup correctly because if I comment out all 
the SQL stuff, the Core taglib which outputs the user-agent works fine.

I've searched with Google for this error and can not find anything...

Any ideas?



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message