• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Performance issue in JSP

 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I had a small performance problem in my JSP , iam pulling thousands of values from DateBase, it is not taking much time but while constructing this data in JSP
it is taking much time, iam using struts tags to construct HTMl, in Tomcat 6.0,
Here is sample code ,



Here iam declaring one global variable as lXml to add data each and every iteration. i cannot avoid scriplet in this case , if we can how .?
I do have some more conditions like this in my JSP.
please suggest me how can i reduce load time of JSP..

Highly appriciated if you have any solutions

Thanks.
 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1.what you are trying to do(explanation not clear)

2.what error you are getting ?

3.if you want to avoid scriptlet use JSTL/EL
 
Naresh Talluri
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Iam not getting any error,

to iterate huge amount of data iam facing some performance problem, it is taking much time to rendering data.

any suggestions please.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Naresh Talluri wrote:
to iterate huge amount of data iam facing some performance problem, it is taking much time to rendering data.
any suggestions please.



that is why,Paging(Pagination) Concept is introduced .
 
Naresh Talluri
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Exactly, but in my case it has to load the complete data,
can you please suggest..
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Naresh Talluri wrote:Exactly, but in my case it has to load the complete data



why? you need to show all the datas in one page to the user? if yes what is the benefit ?
 
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Naresh Talluri wrote:Exactly, but in my case it has to load the complete data,
can you please suggest..



If this is the case. You can write some AJAX asynchronous calls to retrieve bunch of data from server. So that user can continue with data which is already loaded.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does your user really need to see all this on the browser? Browser pages are so ephemeral - if they once look away, you have to regen the whole monster.

Consider creating a .pdf document in a separate Thread and giving a link to it when ready.

Bill
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic