• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP page not loading completely..large data

 
Rishi Chopra
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am stuck with a JSP page which is displaying data fetched from database. It works fine but fails to render page completely when the records from database exceeds....the page loading gets slow and also is incomplete.
No error is thrown....
Any help is appreciated.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35744
412
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rishi,
Maybe you are hitting a timeout? Longer term, you should consider refactoring the page to do the query in Java and use paging to limit the number of rows returned at a time.
 
Rishi Chopra
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your prompt reply. The page functionality is such that usually it comes with very few records for a particular entity in database. However, paging cannot be implemented on this page as just one of the entity details break the page. Any other solution?
 
Rishi Chopra
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bear Bibeault,

Please advice, its UERGENT!!

Thanks,
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rishi Chopra:
Please advice, its UERGENT [sic]!!
While I'm flattered that you've singled me out for help, please be sure to read this with regards to using URGENT!

You say:
No error is thrown....
but I'm not convinced. The most likely cause of incomplete rendering, by far, is an exception being thrown. Just because it doesn't appear on-screen, doesn't mean that it isn't happening.

Carefully check your logs for errors. Carefully check your code to make sure that you don't have any catch blocks that might be masking the exception. Do a View Source on the HTML page to see if there are any clues as to why and where it stopped (though because of buffering this is not always helpful). If worse comes to worse, start adding debug statement to your code to find out where it is baling out. Add temporary try/catch blocks to catch and inspect any exceptions. And so on.
[ July 18, 2008: Message edited by: Bear Bibeault ]
 
arun ramk
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Am also facing same problem......... did you find solution....... if so please reply...... i too want to display huge data in jsp... where paging cannot be implemented...
 
Amit Ghorpade
Bartender
Posts: 2856
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by arun ramk:
Am also facing same problem......... did you find solution....... if so please reply...... i too want to display huge data in jsp... where paging cannot be implemented...


Why no paging?
 
arun ramk
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
becoz there are two tables to be displayed with pagination.........
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!