You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Donald Ball <db...@rhoworld.com> on 2002/10/24 18:11:52 UTC

(stupid) problem using the standard sql taglib

I'm getting the following exception:

----- Root Cause -----
javax.servlet.jsp.JspTagException: javax.servlet.jsp.JspException: An error
occurred while evaluating custom action attribute "test" with value
"${rows.isLimitedByMaxRows}": Unable to find a value for
"isLimitedByMaxRows" in object of class
 "org.apache.taglibs.standard.tag.common.sql.ResultImpl" using operator "."
    at
org.apache.taglibs.standard.tag.el.core.IfTag.condition(IfTag.java:102)
    at
javax.servlet.jsp.jstl.core.ConditionalTagSupport.doStartTag(ConditionalT
agSupport.java:122)

when I try to evaluate this block:

<c:if test="${rows.isLimitedByMaxRows}">
  <c:url var="url" value="${requestScope.requestURI}">
    <c:param name="startRow" value="${view.startRow + view.maxRows}"/>
  </c:url>
  <a href="<c:out value='${url}'/>">Next</a>
</c:if>

the rows variable is working fine, I iterate over it before I try to
evaluate this expression. Just in case it's relevant, rows is initialized
like so:

<sql:query var="rows"
dataSource="${applicationScope.root.connectionBroker}" max
Rows="${view.maxRows}" startRow="${view.startRow}" sql="${view.query}"/>

I'm sure I'm doing something stupid, but I don't know what. I have double
checked that the jstl-1.0.1 RI's ResultImpl does, in fact, declare a public
boolean isLimitedByMaxRows() method. What gives?

- donald


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>