Bug 8126 - not receiving JspException for invalid maxRows attribute
Summary: not receiving JspException for invalid maxRows attribute
Status: RESOLVED FIXED
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Standard Taglib (show other bugs)
Version: 1.0
Hardware: All All
: P3 major (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-15 21:12 UTC by Lance Andersen
Modified: 2004-11-16 19:05 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.