Hello,

Actually, generally, there is more room for optimizations being done on the server
in the case of JSP:s than in the case of Servlets since JSP:s are more abstracted.
For example if you do out.println("<html><lot's more stuff...>") in a servlet, that
will really become a println call. However, if you output the same in a JSP page a
decent JSP implementation will not print that line every time you run the JSP but
simply output a byte-array of the static data, which will save you time. Of course
you can do this and most other optimizations in a servlet too but that would
probably become pretty ugly quite soon.

Of course we can't forget the time it takes for the JSP to be compiled at the first
request though.

<vendor>
I can only speak for the product I know best, the Orion Application Server
(http://www.orionserver.com), but it does JSP-specific optmizations that can't be
done on servlets, so often, a normal JSP will become quicker than a normal servlet
in this server.
</vendor>

Regards,
Karl Avedal

[EMAIL PROTECTED] wrote:

> hi all,
> i've just installed tomcat and running some
> servlets .. but when i tried
> with some jsp .. it seems that jsp interprets slower than
> servlets ... is this "a common phenomenon " ??
>
> or there is somoething with my tomcat ...
>
> i run tomcat in port 80 ...
>
> thank you  ...
>

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to