<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.
Fixed for both startrow and maxrows if they don't evaluate to integers.