It compiles on the first run, you're right,
but it's faster that's for sure.
I saw a little example on one conference that the same code was faster in
servlet that in JSP,
I'm not sure why is that, can anybody explain why ? One of the reasons
might be that a JSP page extendes a servlet, so it's not so thin as a
servlet.
Sorry I'm not that advanced developer yet.
I hope somebody can give you a hand.


Jf




                    Neal Cabage
                    <ncabage@ICONIXX.        To:     [EMAIL PROTECTED]
                    COM>                     cc:
                    Sent by: A               Subject:     Re: Servlets v. JSP
                    mailing list
                    about Java Server
                    Pages
                    specification and
                    reference
                    <JSP-INTEREST@jav
                    a.sun.com>


                    12/30/00 02:23 PM
                    Please respond to
                    nealcabage






Really? But doesn't a JSP just compile into a servlet on it's first run
anyway?  Agreed on the second pointl  That seems to be a good practice in
organization...


-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Fetyko Jan
Sent: Saturday, December 30, 2000 2:23 PM
To: [EMAIL PROTECTED]
Subject: Re: [JSP-INTEREST] Servlets v. JSP


One of the good reasons is that the servlet is faster then a JSP page.
If you get 1000's hits per hour to the same URL, you want it to be fast.
Another reason might be that with building servlets you're separating the
presentation layer from the processing layer.

Jf




                    Neal Cabage
                    <ncabage@ICONIXX.        To:
[EMAIL PROTECTED]
                    COM>                     cc:
                    Sent by: A               Subject:     Servlets v. JSP
                    mailing list
                    about Java Server
                    Pages
                    specification and
                    reference
                    <JSP-INTEREST@jav
                    a.sun.com>


                    12/29/00 06:59 PM
                    Please respond to
                    nealcabage






Anyone out there using servlets rather than JSPs?  Why would a person build
a servlet rather than letting JSP just build one for you.  My initial
thought is that a pure hand-written servlet might be more efficient if
there
is no actual output.  Perhaps one might also consider it better style for
the same reason.  This is just speculation however and JSP just seems
easier
and more time efficient...so would there be a good reason for hand-writing
your own servlets instead?

Thanks.
Neal

===========================================================================
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://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

===========================================================================
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://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

===========================================================================
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://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

===========================================================================
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://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