This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP vs JSP/servlet/bean vs SSJS

 
michelle cheung
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to find the best way to write a java web application.
Currently this application is written in SSJS (server side javascript). The first page connects to a database and returns about 700 rows. Here are some statistics:
1. With SSJS, the first page takes 3 seconds to load.
2. Using JSP with 1 bean (a Connection Pool Bean) it takes 7 seconds.
3. Using JSP, servlet, and Java beans (I was trying to follow the MVC architecture), it take 8-9 seconds to load.
I know the appropriate way to do it is #3, but 8 seconds to load a page, is pretty long.
Is this timing normal? Its a basic jsp page and the only dynamic part of the page is the 700 rows that it needs to display.
Please help
Any suggestions?
 
PI day is 3.14 (march 14th) and is also einstein's birthday. And this is merely a tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!