Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Speed up Application Created USing Servlets and JSP

 
Ranch Hand
Posts: 300
Eclipse IDE Oracle Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Can you shoot lasers out of your eyes? Don't look at this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic