I am facing the performance issue on jsp. Application was design in year 2002 on struts 1.x using jsp and javascripts. There is one case where we have to show approx 1 million records to user on selecting specific category. Its like there are two select box on jsp name as A and B. A is having list of (category approx 1000) . On selecting category we have to show sub-category in select box 2 (approx 1 million records). (java script function is there to hit sever and get the records on same jsp) Currently we are facing lot of issues regarding performance.
Please suggest the best way of displaying such records to user in existing way(using 2 select box on jsp), or any other best approach.