>From Java Coffee Break Vol 3, Issue 10

Interview with Duane K. Fields, and Mark A. Kolb, on JSP

Q: How do you see JSP in relation to Java servlets? There seems
   to be a fair bit of overlap between the two. Are there some
   situations where JSP is preferable to servlets, and vice versa?

A: Mark - Well, JSPs ARE servlets really. JSP code gets parsed,
   turned into a Java source file, and compiled into a servlet
   class on the fly. However, it is useful architecturally to
   speak of them as separate beasts. I recommend using servlets
   for application control only, deferring all content generation
   to the JSPs. For example, to display a record from a database
   you should direct the request at a servlet which collects the
   data into a bean and forwards the request onto a JSP page for
   display. Coders can work on servlets, web developers can work
   on the JSPs.

ELANGO wrote:
>
> Hi,
>
> I am new in this mailing list.Please let me know what are all
> the main differences between servlet and JSP.
>
> thanks and regards,
> -elango
>
> ===========================================================================
> 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

--
Antonio Jimenez Alfaro
Departamento Tecnico
-------------------------------------------------------------
Internet Systems S.A.             mailto:[EMAIL PROTECTED]
Doctor Esquerdo, 10 4� planta     http://www.intersys.es
28028 MADRID                      Tel. +34 914.013.325
SPAIN                             Fax  +34 914.015.689
-------------------------------------------------------------

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