Specifying the initialization parameter javax.servlet.jsp.jstl.sql.maxRows does not limit the size of queries.
Fixed. maxRows context configuration parameter properly sets the maximum number of rows.