• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jsp Loading Program

 
Karthik Ramana
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All ,

I need some guidance from you all.... for JSP page loading.

I have developed a Jsp page which will load the data fetched from the backend.

I am sending arond 25000 records from backend. But while showing it in the front end, i am using some pagination logic ( like, based on the page number user selects from the drop down, and based on the page size user selects from drop down, will display the records ).

Here for the users i am providing an option to configure the columns for the display. ( i.e., user can select his prefered columns ).

My problem is to construct this jsp page, i am using for loop with many if cases.

So what happening is, to paint the page it takes more time. ( even though i am getting the response from server side is bit faster, in front end for construction this page is taking more time )

Can any buddy give me some suggestions to improve the loading speed of this jsp page. ???

Thank you all in advance...... !!!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64717
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Karthik Ramana wrote:I am sending arond 25000 records from backend. But while showing it in the front end, i am using some pagination logic


If you are not showing 25000 records on the page -- and you should not be -- then why are you fetching them all?

Only fetch the records that you need to show. See the JSP FAQ for more info.

Once you do that, paging large record sets becomes almost trivially easy.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic