JSPs are just servlets.  With servlets there's a marginal amount of
performance saving since the JSP model does some initialization for you
(getting session, servletcontext).  It also uses an array to point to the
hard-coded (HTML) source that has slightly more overhead then other data
structures.

With servlets you could some of the speeding up (setting class as final) of
the language that you couldn't with a JSP.

The actual rendering that you are probably doing through JavaBean calls
would remain the same speed though.


----- Original Message -----
From: "Campano, Troy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 16, 2002 3:55 PM
Subject: Are servlets faster?


Are servlets faster at displaying data?


If I want to display large amounts of data on a page, are Servlets faster
then JSP in displaying the data?
Or does it matter at all because JSPs are turned into Servlets when the app
server compiles them?

what are your thoughts?


thank you!


Troy Campano

=========================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to