Bug 8126

Summary: not receiving JspException for invalid maxRows attribute
Product: Taglibs Reporter: Lance Andersen <Lance.Andersen>
Component: Standard TaglibAssignee: Tomcat Developers Mailing List <dev>
Status: RESOLVED FIXED    
Severity: major CC: Ryan.Lubke
Priority: P3    
Version: 1.0   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Lance Andersen 2002-04-15 21:12:56 UTC
<sql:query var="resultSet" 
            dataSource="${applicationScope.jstlDS}" 
            maxRows="invalid" >
     <c:out value="${sqlProps.Select_Jstl_Tab1_By_Id_Query}" />
  </sql:query>

Result:

java.lang.ClassCastException: javax.servlet.jsp.JspException
        at
org.apache.taglibs.standard.tag.el.sql.QueryTag.evaluateExpressions(QueryTag.java:143)
        at
org.apache.taglibs.standard.tag.el.sql.QueryTag.doStartTag(QueryTag.java:121)

According to the spec, this should be a JspException with the original exception
set as the root cause.
Comment 1 Justyna Horwat 2002-04-16 00:36:08 UTC
Fixed for both startrow and maxrows if they don't evaluate to integers.