Hello Neil,
I cannot speak specifically for Websphere but using JSP for the output will
generally be alot faster than using a Servlet with out.print statements (partially
due to the fact that the output from the JSP can be outputted as one byte[] with
only the dynamic part of your information actually being dynamically generated).
Also, a JSP is only compiled once, not at every request, so that is not a
performance problem.
<vendor>
In Orion Application Server (http://www.orionserver.com) the JSP engine is
extremely optimized. Many optmizations can be done in JSP since they're more
abstract. In a Servlet it is harder to do certain optimizations since the developer
usually use lower-lever constructs that cannot easily be optimized by the
container.
</vendor>
Karl Avedal
The Orion team (http://www.orionserver.com)
Neil Harrison wrote:
> Hello.
>
> A general point - if I'm returing a lot of results from a database which
> need only a small amount of formatting for
> display, am i better off using plain looped out.print statements instead of
> JSP - ie will the compile time overhead of JSP each time
> the page is requested be noticably heavy? Are there any other
> considerations for keeping the JSP speed up?
>
> I'll be using an Ultra Sparc Server with Websphere Application Server 3.0
>
> Regards,
>
> Neil.
===========================================================================
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