my dog learned polymorphism*
The moose likes Servlets and the fly likes Speed up Application Created USing Servlets and JSP 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 » Servlets
Bookmark "Speed up Application Created USing Servlets and JSP" Watch "Speed up Application Created USing Servlets and JSP" New topic
Author

Speed up Application Created USing Servlets and JSP

carina caoor
Ranch Hand

Joined: Jun 23, 2007
Posts: 300

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

Joined: Oct 08, 2006
Posts: 2458
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

Joined: Jun 23, 2007
Posts: 300

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

Joined: Apr 14, 2004
Posts: 10336

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.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
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.
 
wood burning stoves
 
subject: Speed up Application Created USing Servlets and JSP
 
Similar Threads
problem when integrating jspell with tinyMCE editor
Space not releasing on toggle of divs
jQuery select option
checked radio button from an Enum value
spaces while populating using s:iterator