The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
December 2001



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


Here is what I know

Posted by Senthoor on December 11, 2001 at 11:20 AM

JSP will be compiled in to a class file when it is accessed for the first time. Which means that when you access a JSP for the first time the response time will be more...

But servlets are already compiled calsses. So they don't need to be compiled again. Which means the response time s faster even at the first request.

Moreover JSP files are plan text files which contains Java code and HTML Brower based language (WML or HDML) but Servelets are not like that... You have to get the output stream and print the HTML code to the output stream....

I found a link which might help you more in understanding the differences...

and also for more info you can look into



Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us