Bug 8123 - If an invalid attribute value is provided to startRow of the <sql:query> action, a ClassCastException is thrown with what appears to be a JspException as the root cause.
Summary: If an invalid attribute value is provided to startRow of the <sql:query> acti...
Status: RESOLVED FIXED
Alias: None
Product: Taglibs
Classification: Unclassified
Component: Standard Taglib (show other bugs)
Version: unspecified
Hardware: All All
: P3 major (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-15 19:29 UTC by Ryan Lubke
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 Ryan Lubke 2002-04-15 19:29:28 UTC
Given:

  <sql:query var="resultSet" 
            dataSource="${applicationScope.jstlDS}" 
            startRow="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:38:47 UTC
Fixed in same commit as 8126. (Forgot to mention Bugzilla 8123 in the commit 
message)