I want to display large number of searched results in my jsp page. I'm using struts framework.
I stored each record in to an object of a class and added to an arraylist and I displayed it with <logic:iterate .
But I want to filter results from array list when clicking on any of the criteria.
I just want to know if my logic is correct or not. Filtering from array list takes lots of time than fetching data from
database. Is there any better solution for searching and filtering with searched results.

Expecting your valuable help and advise.