Bug 8371

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

Description Lance Andersen 2002-04-22 17:07:46 UTC
The following does not throw a JspException, instead a translation error occurs
due to a NumberFormatException

    <sql_rt:query var="resultSet2"  maxRows="invalid"
                    dataSource='<%=(DataSource) pageContext.getAttribute("jstlDS
", PageContext.APPLICATION_SCOPE) %>'  >
          <%=((Properties)pageContext.getAttribute("sqlProps",PageContext.APPLIC
ATION_SCOPE)).getProperty("Simple_Select_Query") %>
      </sql_rt:query>
Comment 1 Jan Luehe 2002-04-23 22:19:56 UTC
Not a bug. The JSTL spec does not say that invalid values may be reported only
at runtime (even if they could have been detected at translation time).