Have JSP page with dynamically generated HTML table with unknown number of rows.
Have property on backend, that sets maximum number of rows, e.g: max_rows=15
Try this:
table > tbody > tr:nth-child(n+15) { display:none; }