Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP vs JSP/servlet/bean vs SSJS

michelle cheung
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?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic