Quoting David Mossakowski ([EMAIL PROTECTED]):

> I don't see how templates separate logic from presentation better than JSP.
> If you don't want to you don't have to put Java into the same file as
> HTML (you are actually encouraged not to do that).

This begs the inverse question: If you aren't going to put your Java
code in with your HTML, why use JSP?

Template systems such as WebMacro are as fast, or faster, and have
a cleaner separation, as well as simpler syntax.

    http://webmacro.org

Also, JSP does encourage you to mix them. Some text somewhere may
advise you not to, but structurally the JSP architecture encourages
you to think that your program code is part of a web page, and that
your HTML is part of the program.

You have to struggle against this implicit mindset to avoid mixing,
and while you certainly can persist in struggling, it's far more
likely that late some tired night some HTML will creep into your
Java, and some Java will creep into your HTML.

The net effect of that gradual bleed will be a brittle system that
is difficult to change.

You can argue that you know where the boundaries are, and won't make
mistakes. C programmers say this kind of thing to Java programmers
all the time--arguing that they know how to structure their programs
well enough and don't need architectural support for encapsulation,
memory management, etc.

The reality is that without structural support, mistakes occur and
programs become inflexible, difficult to understand, and hard to fix.

C has the additional advantage of speed; something that JSP does
not. WebMacro also compiles templates into an efficient optimized
form, for rapid execution.

> If they can learn template language they shouldn't have a problem with
> <USEBEAN>  or <DISPLAY> tags either. This is true for both.

One reason why I developed WebMacro is that this USEBEAN syntax is
too convoluted. WebMacro's script language is conceptually and
visually simpler, yet more powerful (WebMacro introspection is more
aggressive han basic bean analysis).

Justin

WebMacro Servlet Framework
http://webmacro.org

___________________________________________________________________________
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

Reply via email to