On Wed, 19 Jan 2000, Milt Epstein wrote:
> I wanted to comment on some of the things in the response below -- I
> haven't really used JSP, but some of the things seem incorrect, given
> my understanding of it. Of course, if some of my comments are
> incorrect, I hope someone corrects them.
>
> On Wed, 19 Jan 2000, Shash Chatterjee wrote:
>
> > Pere Soler Rubi wrote:
> > >
> > > Hi to all,
> > > We are thinking about designe of a web site. We don't know what are
> > > the advantages that JSP offers. We have read all the Sun's stuff, but
> > > we need some in depth information. Our questions are:
> >
> > I have been playing with JSP lately. The advantage is that it allows
> > you to separate the mechanics of HTML (or, other display client-side
> > presentation technology) from the actual logic and data of the
> > servlet. That is, you can have the same servlet serving up the
> > data, but depending on how the JSP page that uses the servlet is
> > written, the presentation can be different. Or, looking at it
> > another way, you can decide to change the "look" of your pages/site
> > without having to change/recompile the server. Yet another way, you
> > can use the same servlet in three different places on your website
> > or on three different sites and have the output look entirely
> > different.
>
> It's true that JSP does help in terms of separation of display and
> logic/data, but it doesn't do it completely. More importantly, you
> can't use JSP to present the output of the same servlet differently --
> each JSP is compiled into a servlet, so there is a one-to-one
> correspondence between JSP and servlet. (Although if you have other
> classes, like beans or business logic, you could have the JSP present
> the output of those differently.)
[ ... ]
One other thing I meant to mention. "Template" systems (such as
freemarker, webmacro, and others) may allow better separation of
display and logic/data than JSP. YMMV.
Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html