Since I don't have very much experience in web applications at all I've been struggling with this all day now.
I have a index.jsp page that sends a request to a Servlet that creates a very large csv table (5 columns, 500.000+ rows). Since the table is sorted I want to take the first 100 rows and display them in a html table. So the Servlet will redirect the request object to a table.jsp where the data is supposed to be displayed.
I guess I need a piece of advice on the general approach on this. There a several approaches and questions that came to my mind:
While creating the
csvfile, store the first 100 rows in an array of arrays and send them via request object to thejsppage, where they can be displayed in anhtml table.Only send the path to the
csvfile and read the first 100 rows directly in thejsppage.Is it useful to choose
jsonas transfer format?Is an object containing 500 Strings too much to transfer in a request object?
Is the request object a good practice at all to transfer data to the
jsppage?
Thanks for your help