File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Speed up Application Created USing Servlets and JSP

 
carina caoor
Ranch Hand
Posts: 300
Eclipse IDE Oracle Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i created an application using Servlets and jsp which access data from data base by running queries ... as the queries running are extracting data from multiple tables my application dont show much speed while running... now i have got another project to design in which i need to run, time consuming procedures which might take 5 - 10 minutes of time can anybody suggest me how do i increase the speed from servlets and jsp or look more interactive while queries run, also can anybody give me some good sample projects designed i want to have a look at the User Interface designed. In my previous project i designed the front end screen what user see and interact in jsp with javascripting for validations and the business logic is handled by servlets .. Is this approach of designing screens using jsp correct .


sample jsp
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Regarding to the database side (datamodel/SQL): make sure that your datamodel is designed the right way and that your SQL returns ONLY the rows that you actually need and if necessary also in the order that you want.

Regarding to the server side (Java/JSP): make sure that you write efficient code and donĀ“t do memory hogging stuff. Running a profiler may help a lot to find inefficient code and memory leaks.

Regarding to the client side (HTML/JS): make sure that your HTML is not unnecessarily big and that your JS is also written efficient. There are also profilers for JS.
 
carina caoor
Ranch Hand
Posts: 300
Eclipse IDE Oracle Tomcat Server
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just wanted to ask is that a good practise writing html code inside the jsp? also can anybody name me the profilers for js and jsp that identifies the unnecessary things.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ruquia tabassum wrote:Just wanted to ask is that a good practise writing html code inside the jsp?


Yes. Unless you page is completely static in which case a plain old HTML page will do.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ruquia tabassum wrote:Just wanted to ask is that a good practise writing html code inside the jsp?

It belongs in there. JSP is a view technology.
also can anybody name me the profilers for js and jsp that identifies the unnecessary things.

Google can do it.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic