wood burning stoves 2.0*
The moose likes JSP and the fly likes Jsp Loading Program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Jsp Loading Program" Watch "Jsp Loading Program" New topic
Author

Jsp Loading Program

Karthik Ramana
Greenhorn

Joined: Jun 12, 2009
Posts: 1
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

Joined: Jan 10, 2002
Posts: 60810
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jsp Loading Program
 
Similar Threads
How to retrieve partial data in SQL Server ?
setting the selected option in a select element
dynamic data
JSF vs Swings vs Struts
Adding new values in Session