We just posted two new white papers to our web site:

http://java.sun.com/products/jsp/jsp_servlet.html

        describes how JSP technology extends the basic Servlet
framework to enable easier and faster page authoring and maintenance
and to support the different development roles in some larger enterprises.

http://java.sun.com/products/jsp/jsp_developer.html

        oulines several reasons why a Servlet developer may want
to investigate JSP page technology.

JSP & Servlets are joined at the hip.  JSPs are a different way to
write a servlet, one that is more structured so it is easier to author
by hand and by tool, and that emphasizes the "fixed" part of dynamic
content, instead of the "dynamic" part.

Authoring tools have a much easier time with a JSP than with a Servlet.

A JSP is easier to be "serviced/modified" by a non-developer as it may
be just text.

A JSP may forward a request to a Servlet, or a Servlet may forward to
a JSP.  Some developers like to use only Servlets, others like to use
only JSPs.  One may have a JSP that uses custom tags to process a
request and sets parameters before forwarding the request to a servlet.

My personal preference is to organize things so there is a single
entry point that is tracking the state of the interaction. That entry
point may be a Servlet or a JSP.  For example, the APM (Application
Development Model) team in J2EE is writing the sample app that will go
with their book so the entry point is a JSP page that is written
using custom tags to define a the page transitions.

The entry point interacts with server-side data and forwards to a
presentation JSP page.  I like writing those JSP pages so they use
custom tags extensively and I minimize the use of scriptlets.

I personally think that custom tags will be very useful and will lead
to good code reuse.  Most vendors in the JSP expert group seem to
agree; check their products.  Combined with a good authoring tool,
this should allow for great productivity.

As we move ahead, we will upgrade both the JSP and the Servlet
specifications.

Hope this helps,

        - eduard/o pelegri-llopart
        (JSP Expert Group Lead - Java Platform Web Architect)


| Date:    Thu, 28 Oct 1999 17:42:32 +0100
| From:    Ian Graham <[EMAIL PROTECTED]>
| Subject: JSP and Servlets??
|
| This is a multi-part message in MIME format.
|
| ------=_NextPart_000_00EF_01BF216B.D017C820
| Content-Type: text/plain;
|         charset="iso-8859-1"
| Content-Transfer-Encoding: quoted-printable
|
| Hi,
|
| I am relatively new to this wonderful word of Java and the major =
| question I have is:
| "Is there any difference between the functionality of a Servlet and a =
| JSP" from what I can see they both can do exactly the same thing ??
|
| Thank you,
| Ian
|

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to