Quoting Keith Kwiatek ([EMAIL PROTECTED]):
> Seperation of data/logic is critical to dynamic and "multi-view" web sites.
> What I question is the overhead of JSP compared to a regular servlet that
> just uses a template object like : http://freemarker.org/ . Seems to me
> that there MIGHT be overhead issues with jsp.....
There are overhead issues with JSP, but there are also overhead issues
with template systems as well. In the case of WebMacro (webmacro.org)
the overhead is almost identical to JSP--both use introspection and
both compile pages to an intermediate form.
The case of FreeMarker and other template systems is different. They have
their own back end overhead, probably slightly less than WebMacro or JSP.
On the other hand they introduce programmer overhead in that you must
explicitly map your business objects to the FreeMarker data model.
WebMacro and JSP, in contrast, use the Java beans spec to work it out
by performing class analysis.
The big difference is that the separation of logic from view is so
critical that you really should have some architectural support for
it. I don't think JSP provides that--it allows you to separate them,
but only in the same way as assembly language programming can be
structured--only if you behave.
Template systems such as WebMacro and FreeMarker actually go a little
further and enforce the separation architecturally. That makes it harder
for you to get lazy and stick something where it doesn't belong.
WebMacro was recently chosen as the third best servlet product of 1999,
in the current issue of the Java Report. It's free software, works
with all servlet engines (unlike JSP, which requires vendor support)
and is available here:
http://webmacro.org
Justin
>
> Keith
>
> ----- Original Message -----
> From: Willie Wheeler <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, November 03, 1999 2:52 PM
> Subject: Re: Is JSP viable in a production environment
>
>
> > On Wed, 3 Nov 1999, [iso-8859-1] Stuart Butler wrote:
> >
> > > - I really wonder if the presentation/data dichotomy
> > > actually exists. Does data have any meaning other
> > > than in its presentation? How many commercially
> > > running websites have actually managed to separate
> > > data from presentation? Is it a false holy grail to
> > > to chase the complete separation of data from
> > > presentation. And if so what reason JSP?
> >
>
> ===========================================================================
> 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
===========================================================================
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