A JSP is designed to serve a single page. A servlet can serve lots of
pages. (A JSP
can serve multiple pages too, but it's a bit more awkward.)
JSPs which have much Java code in them are hard to read. It's better to try
to restrict
JSPs to HTML and custom tags.
It takes longer to get a JSP to compile and run than a servlet --
there's more scope for dropping an angle bracket, mistyping a custom tag,
missing
the closing tag, and so on, and some of these errors aren't caught until you
try to
run the JSP.
Duane Morse, Eldorado Computing Inc., Phoenix AZ
-----Original Message-----
From: Ganesh MohanRao [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 11, 2001 3:54 PM
To: [EMAIL PROTECTED]
Subject: JSP Vs Servlet
Hi All,
I have a basic doubt. I would like to know in what way "Servlet" is
advantageous over "JSP".
I feel I can do everything in "JSP" that can be done in Servlet.
Is there anything which can't be done by JSP and can be done by Servlet?
Thank you
Ganesh
===========================================================================
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