Name

Max Rows

Synopsis

The maximum rows configuration setting can be set as a String value for a context parameter or as an Integer by custom code. It can be used to prevent run-away queries, because it sets a limit as to how many rows are retrieved for a query result.

Details

Variable name:

javax.servlet.jsp.jstl.sql.maxRows

Java constant:

Config.SQL_MAX_ROWS

Java type:

String or Integer

Set by:

Context parameter or custom code

Used by:

<sql:query>

Get JavaServer Pages, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.